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

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.v19.1.Core.dll

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