alexa
menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class PasteSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    PasteSettingsBuilder
    Namespace: Syncfusion.EJ2.BlockEditor
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class PasteSettingsBuilder : ControlBuilder

    Constructors

    PasteSettingsBuilder()

    Declaration
    public PasteSettingsBuilder()

    PasteSettingsBuilder(PasteSettings)

    Declaration
    public PasteSettingsBuilder(PasteSettings model)
    Parameters
    Type Name Description
    PasteSettings model

    Methods

    AllowedStyles(String[])

    Specifies the allowed styles when pasting content. This property holds an array of styles that can be applied to pasted content.

    Declaration
    public PasteSettingsBuilder AllowedStyles(string[] value)
    Parameters
    Type Name Description
    System.String[] value
    Returns
    Type
    PasteSettingsBuilder

    DeniedTags(String[])

    Specifies the tags that are denied when pasting content. This property holds an array of tags that should be removed from pasted content.

    Declaration
    public PasteSettingsBuilder DeniedTags(string[] value)
    Parameters
    Type Name Description
    System.String[] value
    Returns
    Type
    PasteSettingsBuilder

    KeepFormat(Boolean)

    Specifies whether to keep the formatting of pasted content. This property determines if the formatting (e.g., bold, italics) should be preserved.

    Declaration
    public PasteSettingsBuilder KeepFormat(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    PasteSettingsBuilder

    PlainText(Boolean)

    Specifies whether to paste as plain text. This property removes any formatting from the pasted content and pastes only the raw text.

    Declaration
    public PasteSettingsBuilder PlainText(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    PasteSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved