Export (0) Print
Expand All
Expand Minimize

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.

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.

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

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>

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft