Skip to main content
A newer version of this page is available. .

GaugeControlBase.AddGauge(GaugeType) Method

Adds a new gauge of the specified type to the control.

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v19.1.Win.dll

Declaration

public IGauge AddGauge(
    GaugeType type
)

Parameters

Name Type Description
type DevExpress.XtraGauges.Base.GaugeType

The type of gauge to be added.

Returns

Type Description
DevExpress.XtraGauges.Base.IGauge

The newly created gauge.

Remarks

The AddGauge method assigns a unique name to the gauge, and adds it to the GaugeControlBase.Gauges collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddGauge(GaugeType) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also