Skip to main content
All docs
V26.1
  • OfficeTextArea Class

    Allows you to access and manipulate text.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public abstract class OfficeTextArea :
        OfficeObject,
        ITextRunEnumerable

    The following members return OfficeTextArea objects:

    Remarks

    To specify the text area content, add TextParagraph objects to the OfficeTextArea.Paragraphs collection. To split a paragraph into runs (spans of text that share the same formatting), add TextRun objects to the TextParagraph.Runs collection.

    A new shape’s text area initially contains one default empty paragraph to keep the presentation document valid. This paragraph goes first in the OfficeTextArea.Paragraphs collection.

    You can also use OfficeTextArea.Text, TextParagraph.Text, and TextRun.Text properties to specify text content. Use the “\r\n” character sequence to split the string value into paragraphs or runs.

    Implements

    Inheritance

    See Also