Vcl.ComCtrls.TTextAttributes.ConsistentAttributes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConsistentAttributes: TConsistentAttributes read GetConsistentAttributes;

C++

__property TConsistentAttributes ConsistentAttributes = {read=GetConsistentAttributes, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTextAttributes

Description

Indicates which of the properties of the TTextAttributes object are consistent throughout the text of the current selection in the rich edit object.

Read the ConsistentAttributes of the SelAttributes property of a rich text object to discover which of the properties of the TTextAttributes are meaningful for the current selection. This information is relevant if you want to then read the text characteristics of the current selection. Setting a property of TTextAttributes will cause that property to become a consistent attribute until the selection changes.

ConsistentAttributes is a set drawn from the following values:



Value Meaning

caBold

Characters are consistently either bold or not bold throughout the selection.

caColor

The color of character font is consistent throughout the selection.

caFace

The typeface of the character font is consistent throughout the selection.

caItalic

Characters are consistently either italic or not italic throughout the selection.

caSize

The size of the character font is consistent throughout the selection.

caStrikeOut

Characters consistently either have the strikeout style or they do not have the strikeout style throughout the selection.

caUnderline

Characters are consistently either underlined or not underlined throughout the selection.

caProtected

Text is consistently either protected or not protected.



Note: Use ConsistentAttributes with the SelAttributes property of the rich edit control. The ConsistentAttributes of the DefAttributes property of the rich edit control is the empty set, even though all attributes are consistent in the section of text that has the default attributes.

See Also