SizerBase.DragIncrement Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the incremental amount of change for dragging with the mouse or touch of a sizer control. Effectively a snapping increment for changes. The default is 1.
public double DragIncrement { get; set; }
member this.DragIncrement : double with get, set
Public Property DragIncrement As Double
Property Value
Examples
For instance, if the DragIncrement is set to 16. Then when a component is resized with the sizer, it will only increase or decrease in size in that increment. I.e. -16, 0, 16, 32, 48, etc...
Remarks
This value is independent of the KeyboardIncrement property. If you need to provide consistent snapping when moving regardless of input device, set these properties to the same value.