[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextRun.-ctor

TextRun Constructor

TextRun(string)

Creates a new instance of TextRun.

Declaration
public TextRun(string text)
Public Sub New(text As String)
Parameters
Type Name Description
string text

The text of the section.

TextRun(string, TextFormat)

Creates a new instance of TextRun.

Declaration
public TextRun(string text, TextFormat format)
Public Sub New(text As String, format As TextFormat)
Parameters
Type Name Description
string text

The text of the section.

TextFormat format

The text format to use.

TextRun(int[], int, int)

Creates a new instance of TextRun based on a subrange of an array of UTF-32 characters.

Declaration
public TextRun(int[] codePoints, int startIndex, int count)
Public Sub New(codePoints As Integer(), startIndex As Integer, count As Integer)
Parameters
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.

TextRun(int[], int, int, TextFormat)

Creates a new instance of TextRun based on a subrange of an array of UTF-32 characters.

Declaration
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)
Parameters
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.