Skip to main content

TrackBarControl.CalcMinHeight() Method

Calculates the minumum height of the editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public override int CalcMinHeight()

Returns

Type Description
Int32

The minimum height of the editor, in pixels.

Remarks

If the RepositoryItemTrackBar.AutoSize property is set to false, a user can manually change the trackbar’s height (if oriented horizontally) or width (if oriented vertically). The CalcMinHeight method returns the minimum height/width of the trackbar.

By default, the trackbar’s minimum height is 10 pixels. To change the editor’s minimum height, derive from the TrackBarControl class and override the CalcMinHeight method.

See Also