[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Text

Class Text

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a text element in a body content.

A Text belongs to a single Run, which determines its formatting. Derived classes include FieldCode, Break, Symbol, Tab and LastRenderedPageBreak.

public class Text : ContentObject, IBrowsable<Text>
Inheritance
object
Text
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

IsOMathText

Gets whether the text belongs to an Office Math zone.

public bool IsOMathText { get; }

Property Value

bool
See Also

Next

Gets the next text content.

public Text Next { get; }

Property Value

Text
See Also

ParentRun

Gets the content parent Run.

public Run ParentRun { get; }

Property Value

Run
See Also

PreserveSpace

Gets or sets a value indicating whether to preserve white spaces while displaying or saving content.

public bool PreserveSpace { get; set; }

Property Value

bool
See Also

Previous

Gets the previous text content.

public Text Previous { get; }

Property Value

Text
See Also

Value

Gets or sets the text content value.

public virtual string Value { get; set; }

Property Value

string
See Also

Methods

Split(int)

Splits the text content at a specified position.

public virtual Text Split(int position)

Parameters

position int

The position in the text where to split.

Returns

Text

The second part of the split text content.

See Also

ToString()

Gets string representation of the content.

public override string ToString()

Returns

string

String representation of the content.

See Also

See Also