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

Kendo UI Signature component

Definition

Constructors

Initializes a new instance of the Signature class.

C#
public Signature(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

Gets or sets the background color of the signature.

C#
public string BackgroundColor { get; set; }

The stroke color of the signature.

C#
public string Color { get; set; }

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 bool? Enable { get; set; }

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 FillMode? FillMode { get; set; }

Determines the height of the signature in pixels.

C#
public double? Height { get; set; }

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

C#
public bool? HideLine { get; set; }

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

C#
public string Label { get; set; }

A value indicating whether the component can be maximized

C#
public bool? Maximizable { get; set; }

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

C#
public double? PopupScale { get; set; }

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 bool? Readonly { get; set; }

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

C#
public Rounded? Rounded { get; set; }

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

C#
public ComponentSize? Size { get; set; }

A value indicating whether to smoothen out the signature lines.

C#
public bool? Smooth { get; set; }

Defines how wide will the stroke be.

C#
public double? StrokeWidth { get; set; }

A string value representing a Base64-encoded PNG image

C#
public string Value { get; set; }

Determines the width of the signature in pixels.

C#
public double? Width { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)