|
Programmer's Reference >
WordApplication API >
TwipsConverter
The TwipsConverter Object
Twips are the units of measurement used by the WordWriter API. A single twip represents 1/1440 of an inch.
TwipsConverter is a utility class that converts between twips and other units of measurement.
Example:
[csharp]
WordApplication wwApp = new WordApplication();
Document doc = wwApp.Create();
Section section = doc.CreateSectionAfter();
section.PageWidth = TwipsConverter.FromInches(8.5);
section.PageHeight = TwipsConverter.FromInches(11);
This object does not have any properties defined.
TwipsConverter Methods
| Returns | Signature and Description |
|
int
|
FromCentimeters ( double
cm
)
Converts centimeters to twips
|
|
int
|
FromInches ( double
inches
)
Converts inches to twips
|
|
int
|
FromPoints ( double
pts
)
Converts points to twips
|
|
double
|
ToCentimeters ( int
twips
)
Converts twips to centimeters
|
|
double
|
ToInches ( int
twips
)
Converts twips to inches
|
|
double
|
ToPoints ( int
twips
)
Converts twips to points
|

Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.
|