alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class TextStyleAttrs

    Strongly typed attributes for TextStyleMark. The runtime contract emits these values as strings (e.g. "color": null, "fontFamily": "'Courier New', monospace", "fontSize": "12px"). Only FontSize is transformed (pixel string → numeric System.Double); all other CSS values are preserved as strings to avoid silent normalization.

    Inheritance
    System.Object
    TextStyleAttrs
    Namespace: Syncfusion.Maui.RichTextEditor
    Assembly: Syncfusion.Maui.RichTextEditor.dll
    Syntax
    public sealed class TextStyleAttrs : Object

    Constructors

    TextStyleAttrs()

    Declaration
    public TextStyleAttrs()

    Properties

    BackgroundColor

    CSS background-color string. Null / empty means "unset".

    Declaration
    public string BackgroundColor { get; set; }
    Property Value
    Type
    System.String

    Color

    CSS color string. Null / empty means "unset".

    Declaration
    public string Color { get; set; }
    Property Value
    Type
    System.String

    FontFamily

    CSS font-family string. Null / empty means "unset".

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type
    System.String

    FontSize

    Font size as a numeric value (the runtime emits e.g. "12px"; the runtime pixel suffix is stripped by the property-level Syncfusion.Maui.RichTextEditor.FontSizeConverter and the numeric value is stored here). Null means "unset".

    Declaration
    public Nullable<double> FontSize { get; set; }
    Property Value
    Type
    System.Nullable<System.Double>
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved