Message-ID: <1206168474.8533.1711648686506.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8532_30481780.1711648686506" ------=_Part_8532_30481780.1711648686506 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
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.
=20public static class TwipsConverter=20
Public Shared Class TwipsConverter=20
WordApplication wwApp =3D new WordApplication(); Document doc =3D wwApp.Create(); Section section =3D doc.CreateSectionAfter(); section.PageWidth =3D TwipsConverter.FromInches(8.5); section.PageHeight =3D TwipsConverter.FromInches(11);=20
Dim wwApp As New WordApplication() Dim doc As Document =3D wwApp.Create() Dim section As Section =3D doc.CreateSectionAfter() section.PageWidth =3D TwipsConverter.FromInches(8.5) section.PageHeight =3D TwipsConverter.FromInches(11)=20
Name | =20
Description | =20
---|---|
=20 | Converts centimeters to twips. A twip is 1/567 o= f a centimeter. | =20
=20 | Converts inches to twips. A twip is 1/1440 of an= inch. | =20
=20 | Converts points to twips. 1 point =3D 1/72 inch =
=3D 20 twips. 1 inch =3D 72 points =3D 1440 twips | =20
=20 | Converts twips to centimeters. A twip is 1/1440 = of an inch and 1/567 of a centimeter. | =20
=20 | Converts twips to inches. A twip is 1/1440 of an= inch. | =20
=20 | Converts twips to points. A twip is 1/1440 of an= inch and a point is 1/72 of an inch. | =20