Location:
txtfrmat.h
Link against: etext.lib
TCharFormatMask
Supported from 5.0
Used in conjunction with an object of class
TCharFormat
to mask the character format attributes which are
involved when setting and sensing character formatting. When setting
formatting, only the attributes which are set in the mask should participate in
the relevant function. When sensing formatting, on return, the mask indicates
which attributes were sensed from the format layer, and were not taken from the
default values.
Defined in TCharFormatMask
:
AttribIsSet()
, ClearAll()
, ClearAttrib()
, IsNull()
, SetAll()
, SetAttrib()
, TCharFormatMask()
, operator!=()
, operator==()
TCharFormatMask();
The default C++ constructor constructs a character format mask, initialising all bits to zero.
void SetAttrib(TTextFormatAttribute aAttribute);
Sets a single attribute flag in the character format mask.
|
void ClearAttrib(TTextFormatAttribute aAttribute);
Clears a single attribute flag in the character format mask.
|
TBool AttribIsSet(TTextFormatAttribute aAttribute)const;
Tests whether an attribute flag is set.
|
|
TBool IsNull()const;
Tests whether the mask is NULL, indicating that no flags have been set.
|
TBool operator==(const TCharFormatMask& aMask)const;
Compares two character format masks for equality.
|
|
TBool operator!=(const TCharFormatMask& aMask)const;
Compares two paragraph format masks for inequality.
|
|