Links
EControl Syntax Editor SDK
TecTextAttributes Class

Performs custom formatting of selected text.

TecTextAttributes = class;

ecSyntMemo

Custom formatting is possible only if syntax memo is linked to TecEmbeddedObjects text storage, i.e. TCustomSyntaxMemo.TextStorage references component of TecEmbeddedObjects class. 

 

Custom formatting allows formatting of the text independently on syntax highlighting. Custom formatting is applied over other types of formatting (syntax highlighting, user ranges, ...). 

 

Using TecTextAttributes you may get and set any style attribute of selected text.

Topic 
Description 
The methods of the TecTextAttributes class are listed here. 
The properties of the TecTextAttributes class are listed here. 
 
Method 
 
Property 
TecTextAttributes Methods 
Description 
Indicates whether text may be formatted. 
Clears all custom formatting. 
Clears custom formatting of selected text. 
Creates and initializes a TecTextAttributes instance. 
Returns selection style with common properties. 
TecTextAttributes Properties 
Description 
Specifies background color. 
Bold 
Specifies bold font style of selected text. 
Specifies character set of selected text. 
Specifies font color. 
Specifies whether text may be formatted. 
Specifies hidden style of selected text. 
Specifies italic font style of selected text. 
Name 
Specifies font name of the selected text. 
Specifies read-only style of selected text. 
Size 
Specifies font size of selected text. 
Specifies strikeout font style of selected text. 
Specifies underlined font style of selected text. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!