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

    Contains text formatting properties.

    Namespace: DevExpress.Docs.Office

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

    Declaration

    public class TextProperties :
        OfficeObject

    Remarks

    The following code snippet creates a paragraph with bold, uppercase text, yellow highlighting, and a thick underline:

    using DevExpress.Docs.Office;
    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
                }
            }
        });
    

    Different presentation viewers may prioritize text styles differently and use either TextArea.ParagraphProperties or TextArea.Level1ParagraphProperties to display top-level text.

    Implements

    Inheritance

    Object
    OfficeObject
    TextProperties
    See Also