Class ImageBlockSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ImageBlockSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ImageBlockSettingsBuilder : ControlBuilder
Constructors
ImageBlockSettingsBuilder()
Declaration
public ImageBlockSettingsBuilder()
ImageBlockSettingsBuilder(ImageBlockSettings)
Declaration
public ImageBlockSettingsBuilder(ImageBlockSettings model)
Parameters
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
EnableResize(Boolean)
Specifies whether to enable resize for image.
Declaration
public ImageBlockSettingsBuilder EnableResize(bool value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
value |
|
Returns
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
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
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
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
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
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
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
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
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
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
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
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
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
Returns
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
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
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