Skip to main content

RepositoryItemZoomTrackBar.Middle Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.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