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}{signature:
}
Signature
vb.net
vb.net
Public Shared Class TwipsConverter
{signature}
{example}{code:csharp|title=C#}
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} {code:
Code Block
vb.net
|title=
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)
        
{code} {example} {methods} ||Name||Description|| |[
Methods

...

Excerpt Include
TwipsConverter.FromCentimeters(Double)

...

TwipsConverter.FromCentimeters(Double)

...

nopanel

...

...

Excerpt Include
TwipsConverter.FromInches(Double)

...

TwipsConverter.FromInches(Double)

...

nopanel

...

...

Excerpt Include
TwipsConverter.FromPoints(Double)

...

TwipsConverter.FromPoints(Double)

...

nopanel

...

...

Excerpt Include
TwipsConverter.ToCentimeters(Int32)

...

TwipsConverter.ToCentimeters(Int32)

...

nopanel

...

...

Excerpt Include
TwipsConverter.ToInches(Int32)

...

TwipsConverter.ToInches(Int32)

...

nopanel

...

...

Excerpt Include
TwipsConverter.ToPoints(Int32)

...

TwipsConverter.ToPoints(Int32)

...

nopanel

...

true

...