Increment

Applies to

EditMask controls

Description

When an EditMask control has been defined as a spin control (that is, a control with up and down arrows the user clicks to cycle through predefined values), the Increment property specifies the increment of the spin arrows.

Increment is valid only for numeric and date datatypes. In a date datatype, the increment applies only to the year.

Usage

In a painter

To set the increment of a spin control:

  1. Select the Spin Control check box on the Mask tab page of the control's Properties view.

    The Increment field becomes active.

  2. Select the mask datatype from the Type drop-down list.

  3. Enter an increment value in the Spin Increment field.

In scripts

The Increment property takes a double. The following line specifies an increment of 10 for an EditMask:

em_1.Increment = 10.0