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

Class representing the styles for RadInputControl.

Definition

Constructors

C#
public InputStyle()
C#
public InputStyle(StateBag bag)
Parameters:bagStateBag

Properties

Gets or sets the horizontal alignment applied to the HTML input element.

C#
public virtual HorizontalAlign HorizontalAlign { get; set; }
Property Value:

The horizontal alignment applied to the HTML input element.

A protected property. Gets a value indicating whether any style elements have been defined in the state bag.

C#
public override bool IsEmpty { get; }
Property Value:

true if the state bag has no style elements defined; otherwise, false.

Overrides: Style.IsEmpty

Gets or sets the spacing between letters in the input control.

C#
public virtual Unit LetterSpacing { get; set; }
Property Value:

The spacing between letters in the input control.

Gets or sets the top padding applied to the html input element.

C#
public virtual Unit PaddingBottom { get; set; }
Property Value:

The top padding applied to the html input element.

Gets or sets the left padding applied to the html input element.

C#
public virtual Unit PaddingLeft { get; set; }
Property Value:

The left padding applied to the html input element.

Gets or sets the right padding applied to the html input element.

C#
public virtual Unit PaddingRight { get; set; }
Property Value:

The right padding applied to the html input element.

Gets or sets the top padding applied to the html input element.

C#
public virtual Unit PaddingTop { get; set; }
Property Value:

The top padding applied to the html input element.

C#
public virtual ResizeMode Resize { get; set; }

Methods

Duplicates the style properties of the specified Style into the instance of the Style class that this method is called from.

C#
public override void CopyFrom(Style s)
Parameters:sStyle

A Style that represents the style to copy.

Exceptions: InvalidOperationException

RegisteredCssClass has been set.

Overrides: Style.CopyFrom(Style)

Combines the style properties of the specified Style with the instance of the Style class that this method is called from.

C#
public override void MergeWith(Style s)
Parameters:sStyle

A Style that represents the style to combine.

Exceptions: InvalidOperationException

RegisteredCssClass has been set.

Overrides: Style.MergeWith(Style)

Removes any defined style elements from the state bag.

C#
public override void Reset()

Overrides: Style.Reset()