[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextRun.-ctor

TextRun Constructor

TextRun(string)

Creates a new instance of TextRun.

Declaration
public TextRun(string text)
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)
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)
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)
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.