Back to Devexpress

dxGaugeRegisterScale(TdxGaugeCustomScaleClass,Boolean) Method

vcl-dxgaugecustomscale-dot-dxgaugeregisterscale-x28-4e97141d-x29.md

latest1.4 KB
Original Source

dxGaugeRegisterScale(TdxGaugeCustomScaleClass,Boolean) Method

Adds a custom scale type to the list of scales registered in the Gauge Control.

Declaration

delphi
procedure dxGaugeRegisterScale(AScaleClass: TdxGaugeCustomScaleClass; ARegisterPredefinedStyle: Boolean = True);

Parameters

NameType
AScaleClassTdxGaugeCustomScaleClass
ARegisterPredefinedStyleBoolean

Remarks

Use this procedure to make the custom scale available within the Gauge Control. The custom scale class, derived from the TdxGaugeCustomScale class, is specified as the AScaleClass parameter of the dxGaugeRegisterScale procedure. The optional ARegisterPredefinedStyle parameter specifies whether the predefined visual styles of the registered style should be registered at the same time.

If you need to remove a particular scale type from the list of available scale types, use the dxGaugeUnregisterScale procedure instead.

See Also

dxGaugeCustomScale Unit