BaseGaugeWin.AddLabel() Method
In This Article
Creates a new label and adds it to the BaseGaugeWin.Labels collection.
Namespace: DevExpress.XtraGauges.Win.Base
Assembly: DevExpress.XtraGauges.v24.2.Win.dll
NuGet Package: DevExpress.Win.Gauges
#Declaration
public LabelComponent AddLabel()
#Returns
Type | Description |
---|---|
Label |
A Label |
#Remarks
The AddLabel method creates a new label, generates a unique name for it and then sets its properties as follows:
- Label.Position to (125,125);
- ZOrder to -1001;
- Appearance.TextBrush to a black solid brush;
- Label.FormatString to “{0}”;
- Label.Text to the value of the Label.Name property.
The created label is added to the BaseGaugeWin.Labels collection.
See Also