XUITextLine
Description
Represents a line of text.
Required by MarkdownKit
and XUICodeEditor
.
Properties
Name | Type | Read-Only |
---|---|---|
Characters() | String |
|
Finish | Integer |
✔ |
IsBlank | Boolean |
✔ |
IsDirty | Boolean |
|
IsEmpty | Boolean |
✔ |
Length | Integer |
✔ |
mContents | String |
|
Number | Integer |
|
Start | Integer |
|
Value | String |
Methods
Name | Parameters | Returns |
---|---|---|
Constructor | ||
Constructor | lineNumber As Integer , start As Integer , contents As String |
Property Descriptions
Characters() As String
The individual characters on this line. Does not include newline characters. Should be considered read-only.
Finish As Integer
The 0-based index in the initial text of the end of this line.
IsBlank As Boolean
True if this line is considered blank (empty or contains only spaces or horizontal tabs).
IsDirty As Boolean
True if the line should be considered dirty and needs redrawing.
IsEmpty As Boolean
True if this is an empty line.
Length As Integer
The number of characters on this line.
mContents As String
Backing field which is a string concatenation of the Characters
array.
Number As Integer
The 1-based line number.
Start As Integer
The 0-based index within the initial text of the first character on this line.
Value As String
The line's contents as a string.
Method Descriptions
Constructor()
The default constructor.
Constructor(lineNumber As Integer, start As Integer, contents As String)
A constructor that takes a 1-based lineNumber
, a 0-based start
position in the original text
and some string contents
.