Share via


spin Attribute

Applies To: Windows Server 2008

The spin attribute is a Boolean value. If true, a spin control is created in addition to the numeric text box; otherwise, a numeric text box is created.

Syntax

spin="<true|false>"

where

true represents a spin control is created in addition to the numeric text box and

false represents a numeric text box is created.

Remarks

The spin attribute is an optional attribute, true by default.

Examples

This XML fragment specifies a decimalTextBox element that creates a spin control and numeric text box. Notice the spin attribute does not need to be specified.

<decimalTextBox refId="Sample_NumericTextLabel" defaultValue="900" spinStep="60">Spin box label:</decimalTextBox>

This XML fragment specifies the same spin control and numeric text box as in the first example. This fragment includes the spin attribute.

<decimalTextBox refId="Sample_NumericTextLabel" spin="true" defaultValue="900" spinStep="60">Spin box label:</decimalTextBox>

This XML fragment specifies a numeric text box without the spin control.

<decimalTextBox refId="Sample_NumericTextLabel" spin="false" >Spin box label:</decimalTextBox>

Additional references

decimalTextBox Element