Click or drag to resize

Range Class

Diapason of text chars
Inheritance Hierarchy
SystemObject
  MathStudio.Core.UIRange

Namespace:  MathStudio.Core.UI
Assembly:  MathStudio.Core.UI (in MathStudio.Core.UI.dll) Version: 1.0.6611.39599 (1.0.0.0)
Syntax
C#
public class Range : IEnumerable<Place>, 
	IEnumerable

The Range type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBounds
Public propertyCharAfterStart
Returns first char after Start place
Public propertyCharBeforeStart
Returns first char before Start place
Public propertyChars
Chars of range (exclude \n)
Public propertyColumnSelectionMode
Column selection mode
Public propertyEnd
Finish line and char position
Public propertyFromLine
Public propertyIsEmpty
Return true if no selected text
Public propertyLength
Public propertyReadOnly
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.
Public propertyStart
Start line and char position
Public propertyText
Text of range
Public propertyTextLength
Public propertyToLine
Top
Methods
  NameDescription
Public methodBeginUpdate
Starts selection position updating
Public methodClearFoldingMarkers
Clear folding markers of all lines of range
Public methodClearStyle(Style)
Clear styles of range
Public methodClearStyle(StyleIndex)
Clear styles of range
Public methodClone
Clone range
Public methodContains
Public methodEndUpdate
Ends selection position updating
Public methodEquals (Inherited from Object.)
Public methodExpand
Expands range from first char of Start line to last char of End line
Protected methodFinalize (Inherited from Object.)
Public methodGetCharsAfterStart
Returns required char's number after start of the Range
Public methodGetCharsBeforeStart
Returns required char's number before start of the Range
Public methodGetFragment(String)
Get fragment of text around Start place. Returns maximal matched to pattern fragment.
Public methodGetFragment(String, RegexOptions)
Get fragment of text around Start place. Returns maximal mathed to pattern fragment.
Public methodGetFragment(Style, Boolean)
Get fragment of text around Start place. Returns maximal matched to given Style.
Public methodGetHashCode (Inherited from Object.)
Public methodGetIntersectionWith
Returns intersection with other range, empty range returned otherwise
Public methodGetPlacesCyclic
Public methodGetRanges(String)
Finds ranges for given regex pattern
Public methodGetRanges(Regex)
Finds ranges for given regex
Public methodGetRanges(String, RegexOptions)
Finds ranges for given regex pattern
Public methodGetRangesByLines(Regex)
Finds ranges for given regex. Search is separately in each line. This method requires less memory than GetRanges().
Public methodGetRangesByLines(String, RegexOptions)
Finds ranges for given regex pattern. Search is separately in each line. This method requires less memory than GetRanges().
Public methodGetRangesByLinesReversed
Finds ranges for given regex pattern. Search is separately in each line (order of lines is reversed). This method requires less memory than GetRanges().
Public methodGetSubRanges
Public methodGetType (Inherited from Object.)
Public methodGetUnionWith
Returns union with other range.
Public methodGoLeft
Move range left
Public methodGoLeft(Boolean)
Public methodGoLeftThroughFolded
Move range left
Public methodGoRight
Move range right
Public methodGoRight(Boolean)
Public methodGoRightThroughFolded
Move range left
Public methodGoWordLeft
Public methodGoWordRight
Public methodInverse
Exchanges Start and End
Public methodIsReadOnlyLeftChar
Is char before range readonly
Public methodIsReadOnlyRightChar
Is char after range readonly
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNormalize
Exchanges Start and End if End appears before Start
Public methodSelectAll
Select all chars of control
Public methodSetFoldingMarkers(String, String)
Sets folding markers
Public methodSetFoldingMarkers(String, RegexOptions)
Sets folding markers
Public methodSetFoldingMarkers(String, String, RegexOptions)
Sets folding markers
Public methodSetStyle(Style)
Set style for range
Public methodSetStyle(StyleIndex)
Appends style to chars of range
Public methodSetStyle(Style, String)
Set style for given regex pattern
Public methodSetStyle(Style, Regex)
Set style for given regex
Public methodSetStyle(StyleIndex, Regex)
Set style for given regex pattern
Public methodSetStyle(Style, String, RegexOptions)
Set style for given regex pattern
Public methodSetStyle(StyleIndex, String, RegexOptions)
Set style for given regex pattern
Public methodToString (Overrides ObjectToString.)
Public methodStatic memberToStyleIndex
Top
Fields
  NameDescription
Public fieldtb
Top
Explicit Interface Implementations
See Also