Skip to main content
All docs
V24.2

RangeTrackBarControl.Focus(RangeTrackBarThumb) Method

Focuses the specified thumb.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public void Focus(
    RangeTrackBarThumb thumb
)

Parameters

Name Type Description
thumb RangeTrackBarThumb

The thumb to focus.

Remarks

The following code sample moves the thumb that indicates the maximum value to the left:

void buttonMoveLeft_Click(object sender, EventArgs e) {
    rangeTrackBarControl1.Focus(DevExpress.XtraEditors.RangeTrackBarThumb.Max);
    rangeTrackBarControl1.MoveLeft();
}
See Also