T3000 CrossPlatform Documentation
Range Class |
[This is preliminary documentation and is subject to change.]
Diapason of text chars
Inheritance Hierarchy
Namespace: FastColoredTextBoxNS
Assembly: FastColoredTextBox (in FastColoredTextBox.dll) Version: 2.16.23.0 (2.16.23.0)
Syntax
The Range type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Range(FastColoredTextBox) |
Constructor
| |
Range(FastColoredTextBox, Int32) |
Constructor. Creates range of the line
| |
Range(FastColoredTextBox, Place, Place) |
Constructor
| |
Range(FastColoredTextBox, Int32, Int32, Int32, Int32) |
Constructor
|
Properties
Name | Description | |
---|---|---|
Bounds | ||
CharAfterStart |
Returns first char after Start place
| |
CharBeforeStart |
Returns first char before Start place
| |
Chars |
Chars of range (exclude \n)
| |
ColumnSelectionMode |
Column selection mode
| |
End |
Finish line and char position
| |
FromLine | ||
IsEmpty |
Return true if no selected text
| |
Length | ||
ReadOnly |
Range is readonly?
This property return True if any char of the range contains ReadOnlyStyle.
Set this property to True/False to mark chars of the range as Readonly/Writable.
| |
Start |
Start line and char position
| |
Text |
Text of range
| |
TextLength | ||
ToLine |
Methods
Name | Description | |
---|---|---|
BeginUpdate |
Starts selection position updating
| |
ClearFoldingMarkers |
Clear folding markers of all lines of range
| |
ClearStyle(Style) |
Clear styles of range
| |
ClearStyle(StyleIndex) |
Clear styles of range
| |
Clone |
Clone range
| |
Contains | ||
EndUpdate |
Ends selection position updating
| |
Equals | (Inherited from Object.) | |
Expand |
Expands range from first char of Start line to last char of End line
| |
Finalize | (Inherited from Object.) | |
GetCharsAfterStart |
Returns required char's number after start of the Range
| |
GetCharsBeforeStart |
Returns required char's number before start of the Range
| |
GetFragment(String) |
Get fragment of text around Start place. Returns maximal matched to pattern fragment.
| |
GetFragment(String, RegexOptions) |
Get fragment of text around Start place. Returns maximal mathed to pattern fragment.
| |
GetFragment(Style, Boolean) |
Get fragment of text around Start place. Returns maximal matched to given Style.
| |
GetHashCode | (Inherited from Object.) | |
GetIntersectionWith |
Returns intersection with other range,
empty range returned otherwise
| |
GetPlacesCyclic | ||
GetRanges(String) |
Finds ranges for given regex pattern
| |
GetRanges(Regex) |
Finds ranges for given regex
| |
GetRanges(String, RegexOptions) |
Finds ranges for given regex pattern
| |
GetRangesByLines(Regex) |
Finds ranges for given regex.
Search is separately in each line.
This method requires less memory than GetRanges().
| |
GetRangesByLines(String, RegexOptions) |
Finds ranges for given regex pattern.
Search is separately in each line.
This method requires less memory than GetRanges().
| |
GetRangesByLinesReversed |
Finds ranges for given regex pattern.
Search is separately in each line (order of lines is reversed).
This method requires less memory than GetRanges().
| |
GetSubRanges | ||
GetType | (Inherited from Object.) | |
GetUnionWith |
Returns union with other range.
| |
GoLeft |
Move range left
| |
GoLeft(Boolean) | ||
GoLeftThroughFolded |
Move range left
| |
GoRight |
Move range right
| |
GoRight(Boolean) | ||
GoRightThroughFolded |
Move range left
| |
GoWordLeft | ||
GoWordRight | ||
Inverse |
Exchanges Start and End
| |
IsReadOnlyLeftChar |
Is char before range readonly
| |
IsReadOnlyRightChar |
Is char after range readonly
| |
MemberwiseClone | (Inherited from Object.) | |
Normalize |
Exchanges Start and End if End appears before Start
| |
SelectAll |
Select all chars of control
| |
SetFoldingMarkers(String, String) |
Sets folding markers
| |
SetFoldingMarkers(String, RegexOptions) |
Sets folding markers
| |
SetFoldingMarkers(String, String, RegexOptions) |
Sets folding markers
| |
SetStyle(Style) |
Set style for range
| |
SetStyle(StyleIndex) |
Appends style to chars of range
| |
SetStyle(Style, String) |
Set style for given regex pattern
| |
SetStyle(Style, Regex) |
Set style for given regex
| |
SetStyle(StyleIndex, Regex) |
Set style for given regex pattern
| |
SetStyle(Style, String, RegexOptions) |
Set style for given regex pattern
| |
SetStyle(StyleIndex, String, RegexOptions) |
Set style for given regex pattern
| |
ToString | (Overrides ObjectToString.) | |
ToStyleIndex |
Fields
See Also