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

Defines the fluent API for configuring the Kendo UI Signature

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SignatureBuilder : WidgetBuilderBase<Signature, SignatureBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Signature, SignatureBuilder>SignatureBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Signature, SignatureBuilder>.ToComponent()WidgetBuilderBase<Signature, SignatureBuilder>.Expression(string)WidgetBuilderBase<Signature, SignatureBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Signature, SignatureBuilder>.Name(string)WidgetBuilderBase<Signature, SignatureBuilder>.Deferred(bool)WidgetBuilderBase<Signature, SignatureBuilder>.HtmlAttributes(object)WidgetBuilderBase<Signature, SignatureBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Signature, SignatureBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Signature, SignatureBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Signature, SignatureBuilder>.Render()WidgetBuilderBase<Signature, SignatureBuilder>.ToHtmlString()WidgetBuilderBase<Signature, SignatureBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Signature, SignatureBuilder>.ToClientTemplate()WidgetBuilderBase<Signature, SignatureBuilder>.AsModule(bool)WidgetBuilderBase<Signature, SignatureBuilder>.ComponentWidgetBuilderBase<Signature, SignatureBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the SignatureBuilder class.

C#
public SignatureBuilder(Signature component)
Parameters:componentSignature

Methods

Gets or sets the background color of the signature.

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

The value for BackgroundColor

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

The stroke color of the signature.

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

The value for Color

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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 for Enable

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Configures the client-side events.

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

The client events action.

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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

Sets a value controlling how the color is applied.

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

The value for FillMode

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Determines the height of the signature in pixels.

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

The value for Height

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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

C#
public SignatureBuilder HideLine()
Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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

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

The value for HideLine

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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 for Label

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

A value indicating whether the component can be maximized

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

The value for Maximizable

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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

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

The value for PopupScale

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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()
Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

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 for Readonly

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Sets a value controlling the border radius.

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

The value for Rounded

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Sets a value controlling the size of the component.

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

The value for Size

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

A value indicating whether to smoothen out the signature lines.

C#
public SignatureBuilder Smooth()
Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

A value indicating whether to smoothen out the signature lines.

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

The value for Smooth

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Defines how wide will the stroke be.

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

The value for StrokeWidth

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

A string value representing a Base64-encoded PNG image

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

The value for Value

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.

Determines the width of the signature in pixels.

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

The value for Width

Returns:

SignatureBuilder

Returns the current SignatureBuilder instance.