Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(0)]
[DXCategory("Behavior")]
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