Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

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.

Signature
C#
C#
 public static class TwipsConverter
Signature
vb.net
vb.net
Public Shared Class TwipsConverter
Example
Code Block
csharp
csharp
titleC#

          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
vb.net
vb.net
titlevb.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)
        
Methods

Name

Description

FromCentimeters(Double)

Excerpt Include
TwipsConverter.FromCentimeters(Double)
TwipsConverter.FromCentimeters(Double)
nopaneltrue

FromInches(Double)

Excerpt Include
TwipsConverter.FromInches(Double)
TwipsConverter.FromInches(Double)
nopaneltrue

FromPoints(Double)

Excerpt Include
TwipsConverter.FromPoints(Double)
TwipsConverter.FromPoints(Double)
nopaneltrue

ToCentimeters(Int32)

Excerpt Include
TwipsConverter.ToCentimeters(Int32)
TwipsConverter.ToCentimeters(Int32)
nopaneltrue

ToInches(Int32)

Excerpt Include
TwipsConverter.ToInches(Int32)
TwipsConverter.ToInches(Int32)
nopaneltrue

ToPoints(Int32)

Excerpt Include
TwipsConverter.ToPoints(Int32)
TwipsConverter.ToPoints(Int32)
nopaneltrue