[]
Creates a new instance of TextRun.
public TextRun(string text)
| Type | Name | Description |
|---|---|---|
| string | text | The text of the section. |
Creates a new instance of TextRun.
public TextRun(string text, TextFormat format)
| 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)
| 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)
| 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. |