Enum FormatPainterAction
Defines the actions supported by the Format Painter in the SfRichTextEditor.
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public enum FormatPainterAction
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
| Name | Description |
|---|---|
| CopyFormat | Copies the formatting from the selected text. |
| Escape | Cancels the Format Painter operation. |
| PasteFormat | Applies the previously copied formatting to the selected text. |