alexa
menu

ASP.NET Core - EJ2

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

    Show / Hide Table of Contents

    Class ImageBlockSettingsBuilder

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

    Constructors

    ImageBlockSettingsBuilder()

    Declaration
    public ImageBlockSettingsBuilder()

    ImageBlockSettingsBuilder(ImageBlockSettings)

    Declaration
    public ImageBlockSettingsBuilder(ImageBlockSettings model)
    Parameters
    Type Name Description
    ImageBlockSettings model

    Methods

    AllowedTypes(String[])

    Specifies the allowed image file types that can be uploaded. Common types include '.jpg', '.jpeg', and '.png'.

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

    EnableResize(Boolean)

    Specifies whether to enable resize for image.

    Declaration
    public ImageBlockSettingsBuilder EnableResize(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ImageBlockSettingsBuilder

    Height(Double)

    Specifies the display height of the image. Can be defined in pixels or percentage.

    Declaration
    public ImageBlockSettingsBuilder Height(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    Height(String)

    Specifies the display height of the image. Can be defined in pixels or percentage.

    Declaration
    public ImageBlockSettingsBuilder Height(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    MaxFileSize(Double)

    Specifies the maximum file size allowed for image uploads in bytes. Files exceeding this size will be rejected during validation. Default is 30000000 bytes.

    Declaration
    public ImageBlockSettingsBuilder MaxFileSize(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    MaxHeight(Double)

    Specifies the maximum height of the image in pixels or as a string unit. Prevents the image from being resized beyond this value.

    Declaration
    public ImageBlockSettingsBuilder MaxHeight(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    MaxHeight(String)

    Specifies the maximum height of the image in pixels or as a string unit. Prevents the image from being resized beyond this value.

    Declaration
    public ImageBlockSettingsBuilder MaxHeight(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    MaxWidth(Double)

    Specifies the maximum width of the image in pixels or as a string unit. Prevents the image from being resized beyond this value.

    Declaration
    public ImageBlockSettingsBuilder MaxWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    MaxWidth(String)

    Specifies the maximum width of the image in pixels or as a string unit. Prevents the image from being resized beyond this value.

    Declaration
    public ImageBlockSettingsBuilder MaxWidth(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    MinHeight(Double)

    Specifies the minimum height of the image in pixels or as a string unit. Prevents the image from being resized below this value.

    Declaration
    public ImageBlockSettingsBuilder MinHeight(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    MinHeight(String)

    Specifies the minimum height of the image in pixels or as a string unit. Prevents the image from being resized below this value.

    Declaration
    public ImageBlockSettingsBuilder MinHeight(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    MinWidth(Double)

    Specifies the minimum width of the image in pixels or as a string unit. Prevents the image from being resized below this value.

    Declaration
    public ImageBlockSettingsBuilder MinWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    MinWidth(String)

    Specifies the minimum width of the image in pixels or as a string unit. Prevents the image from being resized below this value.

    Declaration
    public ImageBlockSettingsBuilder MinWidth(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    Path(String)

    Specifies the base path for storing and displaying images on the server. This path is appended to the server URL for image storage organization.

    Declaration
    public ImageBlockSettingsBuilder Path(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    SaveFormat(SaveFormat)

    Specifies the format to save the image. Accepts either 'base64' for inline image encoding or 'blob' for binary object representation.

    Declaration
    public ImageBlockSettingsBuilder SaveFormat(SaveFormat value)
    Parameters
    Type Name Description
    SaveFormat value
    Returns
    Type
    ImageBlockSettingsBuilder

    SaveUrl(String)

    Specifies the server endpoint URL for uploading images. If empty, server upload functionality is disabled.

    Declaration
    public ImageBlockSettingsBuilder SaveUrl(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder

    Width(Double)

    Specifies the display width of the image. Can be defined in pixels or percentage.

    Declaration
    public ImageBlockSettingsBuilder Width(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ImageBlockSettingsBuilder

    Width(String)

    Specifies the display width of the image. Can be defined in pixels or percentage.

    Declaration
    public ImageBlockSettingsBuilder Width(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ImageBlockSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved