Skip to main content
A newer version of this page is available. .

RepositoryItemZoomTrackBar.SnapToMiddle Property

Gets or sets the neighborhood around the middle tick where the thumb, when dragged, automatically snaps to the middle tick value.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(0)]
public int SnapToMiddle { get; set; }

Property Value

Type Default Description
Int32 0

An integer value that specifies the neighborhood around the middle tick where the thumb, when dragged, automatically snaps to the middle tick value.

Remarks

You can specify the middle tick on the ZoomTrackBarControl using the RepositoryItemZoomTrackBar.Middle property. The SnapToMiddle property specifies the neighborhood around the middle tick value where the thumb, when dragged, automatically snaps to the middle value. For instance, if the RepositoryItemZoomTrackBar.Middle property is set to 10 and the SnapToMiddle is set to 2, the thumb is automatically set to the middle value when dragged over the values from 8 to 12. If the SnapToMiddle property is specified, an end-user cannot set the thumb to a value in the specified middle value’s neighborhood using the dragging operation. In code, however, it is still possible to set any value.

See Also