Back to Devexpress

TextParagraph.Text Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-textparagraph-8744c4fe.md

latest2.3 KB
Original Source

TextParagraph.Text Property

Gets or sets the paragraph text.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public string Text { get; set; }
vb
Public Property Text As String

Property Value

TypeDescription
String

The paragraph text.

|

Remarks

Use the “\r\n” character sequence to split the text into runs.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

presentation-api-extract-content/CS/Program.cs#L118

csharp
Shape shape = presentation.Slides[0].Shapes.Find<Shape>(s => s.Name == "TextBox 3");
    return paraText = shape.TextArea.Paragraphs[1].Text;
}

presentation-api-extract-content/VB/Program.vb#L106

vb
Dim shape As Shape = presentation.Slides(0).Shapes.Find(Of Shape)(Function(s) s.Name = "TextBox 3")
paraText = shape.TextArea.Paragraphs(1).Text
Return paraText

See Also

TextParagraph Class

TextParagraph Members

DevExpress.Docs.Presentation Namespace