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