[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextRun

Class TextRun

Namespace
GrapeCity.Documents.Text
Assembly
GcDocs.Imaging.dll

Represents a discrete section of formatted or unformatted text.

public class TextRun : FormattableInline
Inheritance
object
TextRun
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

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

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)

Parameters

codePoints int[]

An array of UTF-32 characters (code points).

startIndex int

Index of the first code point in the subrange.

count int

Number of code points in the subrange.

format TextFormat

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.

public TextRun(int[] codePoints, int startIndex, int count)

Parameters

codePoints int[]

An array of UTF-32 characters (code points).

startIndex int

Index of the first code point in the subrange.

count int

Number of code points in the subrange.

TextRun(string, TextFormat)

Creates a new instance of TextRun.

public TextRun(string text, TextFormat format)

Parameters

text string

The text of the section.

format TextFormat

The text format to use.

TextRun(string)

Creates a new instance of TextRun.

public TextRun(string text)

Parameters

text string

The text of the section.

Properties

Text

Gets or sets the text of the section.

public string Text { get; set; }

Property Value

string

Methods

GetCharCount()

Gets the string of UTF-16 characters.

public override int GetCharCount()

Returns

int

GetChars()

Gets the string of UTF-16 characters.

public override string GetChars()

Returns

string