menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormatPainterAction - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FormatPainterAction

    Defines the actions supported by the Format Painter in the SfRichTextEditor.

    Inheritance
    System.Object
    FormatPainterAction
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class FormatPainterAction : Enum
    Remarks

    These actions specify the behavior for copying, applying, and canceling formatting in the SfRichTextEditor. They help ensure consistent formatting operations within the editor's content.

    Examples
    <SfRichTextEditor>
    <RichTextEditorFormatPainterSettings>
    var options = new FormatPainterParams
    {
    Action = FormatPainterAction.CopyFormat,
    Options = new FormatPainterOptions
    {
    AllowedFormats = "b; em; strong",
    DeniedFormats = "img; a",
    }
    };
    </RichTextEditorFormatPainterSettings>
    </SfRichTextEditor>

    Fields

    CopyFormat

    Copies the formatting from the selected text.

    Declaration
    public const FormatPainterAction CopyFormat
    Field Value
    Type
    FormatPainterAction

    Escape

    Cancels the Format Painter operation.

    Declaration
    public const FormatPainterAction Escape
    Field Value
    Type
    FormatPainterAction

    PasteFormat

    Applies the previously copied formatting to the selected text.

    Declaration
    public const FormatPainterAction PasteFormat
    Field Value
    Type
    FormatPainterAction
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved