Skip to main content

IRangeControlClient.DrawRuler(RangeControlPaintEventArgs) Method

This method allows you to manually draw the ruler. It returns a value indicating whether the ruler has been drawn.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

bool DrawRuler(
    RangeControlPaintEventArgs e
)

Parameters

Name Type Description
e DevExpress.XtraEditors.RangeControlPaintEventArgs

A RangeControlPaintEventArgs value that contains data to paint the ruler.

Returns

Type Description
Boolean

true if the Client draws the ruler itself; false if the ruler is painted by the Range Control.

Remarks

If you do not want the Client to paint the ruler, simply return false when implementing the DrawRuler method. In this case, the ruler will be painted by the Range Control.

To hide the ruler, the DrawRuler method and IRangeControlClient.IsCustomRuler property must return true.

See Also