UpDownControlExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the UpDownBase class.
- C#
- VB.NET
public class UpDownControlExtensions
Public Class UpDownControlExtensions
Methods
BorderStyle<TUpDownControl>(upDownControl, borderStyle)
Sets the BorderStyle property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| borderStyle | BorderStyle | The border style to apply to the control. |
Returns: TUpDownControl. The modified UpDown control.
Editable<TUpDownControl>(upDownControl, editable)
Sets the Editable property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| editable | Boolean | Indicates whether the control should be editable. |
Returns: TUpDownControl. The modified UpDown control.
HideUpDownButtons<TUpDownControl>(upDownControl, hideUpDownButtons)
Sets the HideUpDownButtons property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| hideUpDownButtons | Boolean | Indicates whether the up-down buttons should be hidden. |
Returns: TUpDownControl. The modified UpDown control with up-down buttons hidden.
InterceptArrowKeys<TUpDownControl>(upDownControl, interceptArrowKeys)
Sets the InterceptArrowKeys property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| interceptArrowKeys | Boolean | Indicates whether arrow key events should be intercepted. |
Returns: TUpDownControl. The modified UpDown control.
Invalid<TUpDownControl>(upDownControl, invalid)
Sets the Invalid property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| invalid | Boolean | Indicates whether the current value is invalid. |
Returns: TUpDownControl. The modified UpDown control.
InvalidMessage<TUpDownControl>(upDownControl, invalidMessage)
Sets the InvalidMessage property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| invalidMessage | String | The message to display when the input is invalid. |
Returns: TUpDownControl. The modified UpDown control.
OnSelectedItemChanged<TDomainUpDownControl>(domainUpDownControl, action)
Attaches an event handler to the SelectedItemChanged event of a DomainUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TDomainUpDownControl | The type of the domain up-down control. | |
| domainUpDownControl | TDomainUpDownControl | The domain up-down control to which the event handler is to be attached. |
| action | Action<TDomainUpDownControl> | The action to perform when the SelectedItemChanged event is triggered. |
Returns: TDomainUpDownControl. The domain up-down control with the event handler attached.
OnSortedItemChanged<TDomainUpDownControl>(domainUpDownControl, action)
Attaches an event handler to the SortedChanged event of a DomainUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TDomainUpDownControl | The type of the domain up-down control. | |
| domainUpDownControl | TDomainUpDownControl | The domain up-down control to which the event handler is to be attached. |
| action | Action<TDomainUpDownControl> | The action to perform when the SortedChanged event is triggered. |
Returns: TDomainUpDownControl. The domain up-down control with the event handler attached.
SelectOnEnter<TUpDownControl>(upDownControl, selectOnEnter)
Sets the SelectOnEnter property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| selectOnEnter | Boolean | Indicates whether the text should be selected when the control gains focus. |
Returns: TUpDownControl. The modified UpDown control.
TextAlign<TUpDownControl>(upDownControl, textAlign)
Sets the TextAlign property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| textAlign | HorizontalAlignment | The horizontal alignment of the text within the control. |
Returns: TUpDownControl. The modified UpDown control.
UpDownAlign<TUpDownControl>(upDownControl, upDownAlign)
Sets the UpDownAlign property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
| upDownAlign | HorizontalAlignment | The horizontal alignment of the up-down buttons within the control. |
Returns: TUpDownControl. The modified UpDown control.
Wrap<TUpDownControl>(upDownControl)
Enables the Wrap property of the specified UpDown control.
| Parameter | Type | Description |
|---|---|---|
| TUpDownControl | ||
| upDownControl | TUpDownControl | The UpDown control to modify. |
Returns: TUpDownControl. The modified UpDown control with wrapping enabled.