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.Middle Property

Gets or sets the ZoomTrackBarControl value set to the middle tick.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public int Middle { get; set; }

#Property Value

Type Description
Int32

An Int32 value that is the ZoomTrackBarControl value set to the middle tick.

#Remarks

The Middle property specifies the value corresponding to the ZoomTrackBarControl‘s middle tick. This property allows you to divide a ZoomTrackBarControl’s total value range into two unequal value segments. The Middle property must lie between the RepositoryItemTrackBar.Minimum and RepositoryItemTrackBar.Maximum values.

For example, the Maximum property equals 20, the Minimum property equals 5 and the Middle property equals 7. This means it will take 2 steps to reach the middle starting from the beginning (from 5 to 7), and 13 additional steps to reach the end (from 7 to 20).

The RepositoryItemZoomTrackBar.AllowUseMiddleValue property specifies the Middle property’s availability. If this property equals false, the Middle property has no relevance and always equals 5.

See Also