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.v22.2.dll

NuGet Package: DevExpress.Data


bool DrawRuler(
    RangeControlPaintEventArgs e


Name Type Description
e DevExpress.XtraEditors.RangeControlPaintEventArgs

A RangeControlPaintEventArgs value that contains data to paint the ruler.


Type Description

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


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