officefileapi-devexpress-dot-docs-dot-presentation-cb7040ed.md
Contains text formatting properties.
Namespace : DevExpress.Docs.Presentation
Assembly : DevExpress.Docs.Presentation.v25.2.dll
NuGet Package : DevExpress.Docs.Presentation
public class TextProperties :
PresentationObject
Public Class TextProperties
Inherits PresentationObject
The following members return TextProperties objects:
The following code snippet creates a paragraph with bold, all-caps text, a yellow highlight color, and a heavy underline:
using DevExpress.Docs.Presentation;
using System.Drawing;
//...
textArea.Paragraphs.Add(new TextParagraph("5 successful builds") {
Properties = new ParagraphProperties {
TextProperties = new TextProperties {
Bold = true, Caps = TextCapType.All,
HighlightColor = new DevExpress.Docs.OfficeColor(Color.Yellow),
UnderlineType = TextUnderlineType.Heavy
}
}
});
Imports DevExpress.Docs.Presentation
Imports System.Drawing
'...
textArea.Paragraphs.Add(New TextParagraph("5 successful builds") With {
.Properties = New ParagraphProperties With {
.TextProperties = New TextProperties With {
.Bold = True,
.Caps = TextCapType.All,
.HighlightColor = New DevExpress.Docs.OfficeColor(Color.Yellow),
.UnderlineType = TextUnderlineType.Heavy
}
}
})
Different presentation viewers may prioritize text styles differently and use either TextAreaBase.ParagraphProperties or TextAreaBase.Level1ParagraphProperties to display top-level text.
Object PresentationObject TextProperties
See Also