Skip to main content

BaseGaugeWin.AddLabel() Method

Creates a new label and adds it to the BaseGaugeWin.Labels collection.

Namespace: DevExpress.XtraGauges.Win.Base

Assembly: DevExpress.XtraGauges.v24.2.Win.dll

Declaration

public LabelComponent AddLabel()

Returns

Type Description
LabelComponent

A LabelComponent object that represents the created label.

Remarks

The AddLabel method creates a new label, generates a unique name for it and then sets its properties as follows:

The created label is added to the BaseGaugeWin.Labels collection.

See Also