XUITagCanvasLine
Description
Represents a line of text (including any tags) within the XUITagCanvas
.
Properties
Name | Type | Read-Only |
---|---|---|
mOwner | WeakRef |
|
Number | Integer |
|
Owner | XUITagCanvas |
✔ |
Tags() | XUITag |
|
UnparsedText | String |
Methods
Name | Parameters | Returns |
---|---|---|
Append | s As String |
|
Constructor | owner As XUITagCanvas , lineNumber As Integer |
|
ContentsWidth | g As Graphics |
Double |
Draw | g As Graphics , x As Double , topLeftY As Double , lineH As Double |
Property Descriptions
mOwner As WeakRef
A weak reference to the owning tag canvas.
Number As Integer
This line's 1-based number.
Owner As XUITagCanvas
The owning tag canvas.
Tags() As XUITag
The tags on this line. Should be considered read only.
UnparsedText As String
Contiguous text on this line that has not yet been parsed into a tag.
Method Descriptions
Append(s As String)
Appends s
to the end of this line.
Constructor(owner As XUITagCanvas, lineNumber As Integer)
Default constructor.
owner
is theXUITagCanvas
that owns this line. A newWeakRef
to the canvas will be created.lineNumber
is the 1-based line number of this new line.
ContentsWidth(g As Graphics) As Double
Returns the width from the left edge of this line to the end of the line's contents.
g
is the context the line would be drawn to if it were being drawn.
Draw(g As Graphics, x As Double, topLeftY As Double, lineH As Double)
Draws this line to g
.
x
is the X coord of the top left corner of the line.topLeftY
is the Y coord of the top left corner of the line.lineH
is the height of the line.