Skip to main content

LinearScale.ValueToPercent(Single) Method

Returns the percent of the specified value in relation to the scale’s minimum and maximum values.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v24.1.Core.dll

NuGet Package: DevExpress.Gauges.Core

Declaration

public float ValueToPercent(
    float value
)

Parameters

Name Type Description
value Single

The value whose percent is to be returned.

Returns

Type Description
Single

The percent of the specified value in relation to the scale’s minimum and maximum values.

Remarks

This method returns the percent of the specified value in relation to the scale’s minimum (LinearScale.MinValue) and maximum (LinearScale.MaxValue) values.

See Also