Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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