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.v20.1.dll

Declaration

bool DrawRuler(
    RangeControlPaintEventArgs e
)
Function DrawRuler(
    e As RangeControlPaintEventArgs
) As Boolean

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