...
Wiki Markup |
---|
{description}
{excerpt}Converts points to twips. 1 point = 1/72 inch = 20 twips. |
...
Signature |
---|
C# | C# |
1 inch = 72 points = 1440 twips{excerpt}
{signature:C#}
public int FromPoints(double pts)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function FromPoints(ByVal pts As Double) As Integer
|
...
The number of points to convert.
Returns |
---|
The result of the conversion (twips). |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:pts}The number of points to convert.{param}
{returns}The result of the conversion \(twips\).{returns}
{example}{code:csharp|title=C#}
WordApplication wwApp = new WordApplication();
Document doc = wwApp.Create();
Section section = doc.CreateSectionAfter();
section.PageWidth = TwipsConverter.FromPoints(612);
section.PageHeight = TwipsConverter.FromPoints(792);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim wwApp As New WordApplication()
Dim doc As Document = wwApp.Create()
Dim section As Section = doc.CreateSectionAfter()
section.PageWidth = TwipsConverter.FromPoints(612)
section.PageHeight = TwipsConverter.FromPoints(792)
{code}
{example}