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

RepositoryItemZoomTrackBar.Middle Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Middle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also