...
Wiki Markup |
---|
{description}
{excerpt}Converts inches to twips. A twip is 1/1440 of an inch. |
...
Signature |
---|
C# | C# | {excerpt}
{signature:C#}
public int FromInches(double inches)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function FromInches(ByVal inches As Double) As Integer
|
...
The number of inches to convert.
Returns |
---|
The result of the conversion (twips). |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:inches}The number of inches 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.FromInches(8.5);
section.PageHeight = TwipsConverter.FromInches(11);
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.FromInches(8.5)
section.PageHeight = TwipsConverter.FromInches(11)
{code}
{example}