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.2.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