Skip to main content

GraphicsDpi.UnitToString(GraphicsUnit) Method

Returns a string value, identifying the specified unit of measure.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public static string UnitToString(
    GraphicsUnit unit
)

Parameters

Name Type Description
unit GraphicsUnit

A GraphicsUnit enumeration value.

Returns

Type Description
String

A String value.

Remarks

When the unit parameter value is equal to Millimeter, this method returns “mm”.

When this parameter value is equal to Inch, this method returns “in”.

When this parameter is set to any other GraphicsUnit value, this method returns a String.Empty value.

See Also