alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class StyleModel

    Specifies the style model in the SfBlockEditor component.

    Inheritance
    object
    StyleModel
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.BlockEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [JsonConverter(typeof(StyleModelConverter))]
    public class StyleModel

    Constructors

    StyleModel()

    Declaration
    public StyleModel()

    Properties

    BackgroundColor

    Represents the background color of the text.

    Declaration
    public string BackgroundColor { get; set; }
    Property Value
    Type Description
    string

    A string value representing the CSS background color applied to the text.

    Remarks

    Accepts any valid CSS color string. Use this to highlight text with background color.

    Examples
    BackgroundColor = "yellow";

    Bold

    Represents a bold text option.

    Declaration
    public bool Bold { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether bold formatting is applied to the text.

    Remarks

    When set to true, the selected text within the block is displayed in bold.

    Color

    Represents the color of the text.

    Declaration
    public string Color { get; set; }
    Property Value
    Type Description
    string

    A string value representing the CSS color applied to the text.

    Remarks

    Accepts any valid CSS color string such as "#ff0000" or "red".

    Examples
    Color = "#4CAF50";

    InlineCode

    Represents a inline code option.

    Declaration
    public bool InlineCode { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether the content should be inline code.

    Remarks

    When enabled, the content will be of inline code.

    Italic

    Represents an italic text option.

    Declaration
    public bool Italic { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether italic formatting is applied to the text.

    Remarks

    When enabled, the selected text will appear in italic style within the block.

    Lowercase

    Represents a lowercase text option.

    Declaration
    public bool Lowercase { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether the text should be transformed to lowercase.

    Remarks

    Converts the text to all lowercase letters when enabled.

    Strikethrough

    Represents a strikethrough text option.

    Declaration
    public bool Strikethrough { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether strikethrough formatting is applied to the text.

    Remarks

    Strikes a horizontal line through the selected text when enabled.

    Subscript

    Represents a subscript text option.

    Declaration
    public bool Subscript { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether subscript formatting is applied to the text.

    Remarks

    Displays the text below the normal text line, commonly used in formulas.

    Superscript

    Represents a superscript text option.

    Declaration
    public bool Superscript { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether superscript formatting is applied to the text.

    Remarks

    Displays the text above the normal text line, useful for notations and footnotes.

    Underline

    Represents an underline text option.

    Declaration
    public bool Underline { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether underline formatting is applied to the text.

    Remarks

    Applies an underline to the selected text within the block.

    Uppercase

    Represents an uppercase text option.

    Declaration
    public bool Uppercase { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether the text should be transformed to uppercase.

    Remarks

    Converts the text to all capital letters when enabled.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved