New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Kendo Signature for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Signature class.

C#
public SignatureBuilder(Signature component)
Parameters:componentSignature

The component.

Methods

Gets or sets the background color of the signature.

C#
public SignatureBuilder BackgroundColor(string value)
Parameters:valuestring

The value that configures the backgroundcolor.

Returns:

SignatureBuilder

The stroke color of the signature.

C#
public SignatureBuilder Color(string value)
Parameters:valuestring

The value that configures the color.

Returns:

SignatureBuilder

If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

C#
public SignatureBuilder Enable(bool value)
Parameters:valuebool

The value that configures the enable.

Returns:

SignatureBuilder

Configures the client-side events.

C#
public SignatureBuilder Events(Action<SignatureEventBuilder> configurator)
Parameters:configuratorAction<SignatureEventBuilder>

The client events action.

Returns:

SignatureBuilder

Example:
C#
&lt;%= Html.Kendo().Signature()
.Name("Signature")
.Events(events =&gt; events
.Change("onChange")
)
%&gt;

Sets a value controlling how the color is applied. Can also be set to the following string values: "solid"; "flat"; "outline" or "none".

C#
public SignatureBuilder FillMode(FillMode value)
Parameters:valueFillMode

The value that configures the fillmode.

Returns:

SignatureBuilder

Determines the height of the signature in pixels.

C#
public SignatureBuilder Height(double value)
Parameters:valuedouble

The value that configures the height.

Returns:

SignatureBuilder

A value indicating whether the dotted line should be displayed in the background.

C#
public SignatureBuilder HideLine(bool value)
Parameters:valuebool

The value that configures the hideline.

Returns:

SignatureBuilder

Specifies the label that will be rendered on the k-signature-canvas element of the component with the aria-label attribute.

C#
public SignatureBuilder Label(string value)
Parameters:valuestring

The value that configures the label.

Returns:

SignatureBuilder

A value indicating whether the component can be maximized

C#
public SignatureBuilder Maximizable(bool value)
Parameters:valuebool

The value that configures the maximizable.

Returns:

SignatureBuilder

Defines a value indicating the scaling size of the popup signature pad

C#
public SignatureBuilder PopupScale(double value)
Parameters:valuedouble

The value that configures the popupscale.

Returns:

SignatureBuilder

If set to true, the widget will be readonly and will not allow user input. The widget is not readonly by default and allows user input.

C#
public SignatureBuilder Readonly(bool value)
Parameters:valuebool

The value that configures the readonly.

Returns:

SignatureBuilder

Sets a value controlling the border radius. Can also be set to the following string values: "small"; "medium"; "large"; "full" or "none".

C#
public SignatureBuilder Rounded(Rounded? value)
Parameters:valueRounded?

The value that configures the rounded.

Returns:

SignatureBuilder

Sets a value controlling size of the component. Can also be set to the following string values: "small"; "medium"; "large" or "none".

C#
public SignatureBuilder Size(ComponentSize? value)
Parameters:valueComponentSize?

The value that configures the size.

Returns:

SignatureBuilder

A value indicating whether to smoothen out the signature lines.

C#
public SignatureBuilder Smooth(bool value)
Parameters:valuebool

The value that configures the smooth.

Returns:

SignatureBuilder

Defines how wide will the stroke be.

C#
public SignatureBuilder StrokeWidth(double value)
Parameters:valuedouble

The value that configures the strokewidth.

Returns:

SignatureBuilder

A string value representing a Base64-encoded PNG image

C#
public SignatureBuilder Value(string value)
Parameters:valuestring

The value that configures the value.

Returns:

SignatureBuilder

Determines the width of the signature in pixels.

C#
public SignatureBuilder Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

SignatureBuilder