ConvertUtilPointToInch Method

Converts points to inches.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public static double PointToInch(
	double points
)

Parameters

points
Type: SystemDouble
The value to convert.

Return Value

Type: Double
Remarks
1 inch equals 72 points.
Examples
Shows how to convert points to inches.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

PageSetup pageSetup = builder.PageSetup;
pageSetup.TopMargin = ConvertUtil.InchToPoint(2.0);

Console.WriteLine("The size of my top margin is {0} points, or {1} inches.", pageSetup.TopMargin,
    ConvertUtil.PointToInch(pageSetup.TopMargin));
See Also