[]
Creates a new instance of TextRun.
public TextRun(string text)
Public Sub New(text As String)
| Type | Name | Description |
|---|---|---|
| string | text | The text of the section. |
Creates a new instance of TextRun.
public TextRun(string text, TextFormat format)
Public Sub New(text As String, format As TextFormat)
| Type | Name | Description |
|---|---|---|
| string | text | The text of the section. |
| TextFormat | format | The text format to use. |
Creates a new instance of TextRun based on a subrange of an array of UTF-32 characters.
public TextRun(int[] codePoints, int startIndex, int count)
Public Sub New(codePoints As Integer(), startIndex As Integer, count As Integer)
| Type | Name | Description |
|---|---|---|
| int[] | codePoints | An array of UTF-32 characters (code points). |
| int | startIndex | Index of the first code point in the subrange. |
| int | count | Number of code points in the subrange. |
Creates a new instance of TextRun based on a subrange of an array of UTF-32 characters.
public TextRun(int[] codePoints, int startIndex, int count, TextFormat format)
Public Sub New(codePoints As Integer(), startIndex As Integer, count As Integer, format As TextFormat)
| Type | Name | Description |
|---|---|---|
| int[] | codePoints | An array of UTF-32 characters (code points). |
| int | startIndex | Index of the first code point in the subrange. |
| int | count | Number of code points in the subrange. |
| TextFormat | format | The text format to use. |