Skip to main content

dxGaugeRegisterStyleFromFile(TdxGaugeScaleType,string) Method

Registers the visual style for a scale type from the XML style file.

Declaration

function dxGaugeRegisterStyleFromFile(AScaleType: TdxGaugeScaleType; const AFileName: string): Boolean;

Parameters

Name Type
AScaleType TdxGaugeScaleType
AFileName string

Returns

Type
Boolean

Remarks

Use this function to register an additional visual style for one of the scale types available within the Gauge Control. The dxGaugeRegisterStyleFromFile function uses an XML file containing all necessary style information as a source. The path to the source file is specified as the AFileName parameter while the AScaleType parameter specifies the scale type for which the visual style is registered.

The dxGaugeRegisterStyleFromFile function returns True if the scale’s visual style was registered successfully; otherwise, False.

See Also