Description
Converts inches to twips. A twip is 1/1440 of an inch.
C#
public int FromInches(double inches)
vb.net
Public Function FromInches(ByVal inches As Double) As Integer
Parameters
inches
The number of inches to convert.Returns
The result of the conversion (twips).Examples
C#
WordApplication wwApp = new WordApplication();
Document doc = wwApp.Create();
Section section = doc.CreateSectionAfter();
section.PageWidth = TwipsConverter.FromInches(8.5);
section.PageHeight = TwipsConverter.FromInches(11);
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)
