Skip to main content

TdxGaugeScaleCollection.Add(TdxGaugeCustomScaleClass) Method

Adds a new scale to the collection.

Declaration

function Add(AScaleClass: TdxGaugeCustomScaleClass): TdxGaugeCustomScale;

Parameters

Name Type
AScaleClass TdxGaugeCustomScaleClass

Returns

Type
TdxGaugeCustomScale

Remarks

Use this method to add a scale to the Gauge Control at runtime. The AScaleClass parameter specifies the type of the created scale. The Add function returns the generic form of a particular scale object.

Refer to the Items property description for the code example demonstrating the Add method in action.

Alternatively, you can use the Gauge Control’s AddScale and/or AddContainer methods.

See Also