Links
EControl Syntax Editor SDK
TBlockStaple Class

Contains information about the block staple.

TBlockStaple = class(TRange);

ecSyntAnal

Block staple is a visible element that links together lines of the text range. Staple is displayed at the left side of text range's lines. They help to represent hierarchical structure of the text. 

Block staples are created for text ranges for which Rule.DrawStaple is True. 

Block staple are drawn from the StartLine to the EndLine at the position that equals to XPos minus StapleOffset. 

 

Block staple does not refer to the text range. Block staples created at the finish of analysis and they are not deleted with text ranges when text is changed. This allows to remove flicker effects.

Topic 
Description 
The methods of the TSortedItem class are listed here. 
TRange Class
Topic 
Description 
The methods of the TRange class are listed here. 
The properties of the TRange class are listed here. 
TBlockStaple Class
Topic 
Description 
The properties of the TBlockStaple class are listed here. 
 
Method 
 
protected 
 
abstract 
 
virtual 
 
Property 
 
read only 
TSortedItem Methods 
Description 
Derived classes should return the ID of the item. This ID is used for sorting. 
TRange Class
TRange Class 
Description 
Creates new range with the specified limits. 
Derived classes should return the ID of the item. This ID is used for sorting. 
TRange Class
TRange Class 
Description 
End position of the range. This position is not included in the range. 
Size 
Length of the range.
Size = EndPos - StartPos
Start position of the range. Start position is included in the range. 
TBlockStaple Class
TBlockStaple Class 
Description 
Rule 
Reference to rule, which was used to create this object. 
XPos 
Indicates X position of the staple. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!