BaseGaugeWin.AddLabel() Method
Creates a new label and adds it to the BaseGaugeWin.Labels collection.
Namespace: DevExpress.XtraGauges.Win.Base
Assembly: DevExpress.XtraGauges.v24.1.Win.dll
NuGet Package: DevExpress.Win.Gauges
Declaration
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:
- 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