ConvertUtilPointToInch Method |
Converts points to inches.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic static double PointToInch(
double points
)
Public Shared Function PointToInch (
points As Double
) As Double
public:
static double PointToInch(
double points
)
static member PointToInch :
points : float -> float
Parameters
- points
- Type: SystemDouble
The value to convert.
Return Value
Type:
Double
Remarks
1 inch equals 72 points.
ExamplesShows 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