Links
EControl Syntax Editor SDK
TUserRange Class

Represents custom formatting object of the text in syntax memo.

TUserRange = class(TCollectionItem);

ecSyntMemo

User ranges are intended to allow custom formatting over syntax highlighting provided by the TSyntAnalyzer. They may be used without syntactical analyzer. 

 

User range is a text range from the StartPos to the EndPos that can have style (Style), collapsing capability (Collapsable), top and bottom line separator (LineBreaks). 

 

You can create user ranges in design time using TCustomSyntaxMemo.UserRanges property (collection) or visually in the property editor for TCustomSyntaxMemo.Lines or in the component editor of TSyntaxMemo ("Edit text..." item in the popup menu). This editor of text content allows text and user ranges editing. 

 

User range looks for the Style in TSyntStyles.Styles (property UserStyles) and TSyntAnalyzer.Formats linked to TCustomSyntaxMemo.

Topic 
Description 
The methods of the TUserRange class are listed here. 
The properties of the TUserRange class are listed here. 
 
Constructor 
 
virtual 
 
Property 
TUserRange Methods 
Description 
Creates and initializes a TUserRange instance. 
Destroys an instance of TUserRange. 
Sets bounds of the user range for one action. 
TUserRange Properties 
Description 
Specifies string representation of user range properties. 
Specifies whether user range may be collapsed. 
Specifies text icon which is displayed when range is collapsed. 
Specifies last line of the user range. 
Specifies end of the user range. 
Stores LineBreaks, Collapsable and HighlightLines properties in single integer value. 
Specifies whether line highlighting mode to be used. 
Specifies color of the line separators. 
Specifies what line separators to be used. 
Specifies first line of the user range. 
Specifies start of the user range. 
Specifies style of the user range. 
Tag 
Stores an integer value as part of a user range object. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!