alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    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 double); all other CSS values are preserved as strings to avoid silent normalization.

    Inheritance
    object
    TextStyleAttrs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.RichTextEditor
    Assembly: Syncfusion.Maui.RichTextEditor.dll
    Syntax
    public sealed class TextStyleAttrs

    Constructors

    TextStyleAttrs()

    Declaration
    public TextStyleAttrs()

    Properties

    BackgroundColor

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

    Declaration
    [JsonPropertyName("backgroundColor")]
    public string? BackgroundColor { get; set; }
    Property Value
    Type
    string

    Color

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

    Declaration
    [JsonPropertyName("color")]
    public string? Color { get; set; }
    Property Value
    Type
    string

    FontFamily

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

    Declaration
    [JsonPropertyName("fontFamily")]
    public string? FontFamily { get; set; }
    Property Value
    Type
    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
    [JsonConverter(typeof(FontSizeConverter))]
    [JsonPropertyName("fontSize")]
    public double? FontSize { get; set; }
    Property Value
    Type
    double?
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved