Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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}
{example}{code:csharp|title=C#}

          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:vb.net
|title=vb.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)
        
Signature
C#C#
Wiki Markup
{description}
{excerpt}Twips are the units of measurement used by the WordWriter API. A single twip represents 1/1440 of an inch. [TwipsConverter|TwipsConverter] is a utility class that converts between twips and other units of measurement.{excerpt}
{signature:C#}
 public static class TwipsConverter
Signature
{signature}{signature:vb.net
vb.net
}
Public Shared Class TwipsConverter
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle
Methods

...

Name

...

Description

{code}

{example}
{methods}
||Name||Description||
|[FromCentimeters(Double)

...

|TwipsConverter.FromCentimeters(Double)

...

]|{excerpt-include:TwipsConverter.FromCentimeters(Double)

...

|nopanel

...

=true}|
|[FromInches(Double)

...

|TwipsConverter.FromInches(Double)

...

]|{excerpt-include:TwipsConverter.FromInches(Double)

...

|nopanel

...

=true}|
|[FromPoints(Double)

...

|TwipsConverter.FromPoints(Double)

...

]|{excerpt-include:TwipsConverter.FromPoints(Double)

...

|nopanel

...

=true}|
|[ToCentimeters(Int32)

...

|TwipsConverter.ToCentimeters(Int32)

...

]|{excerpt-include:TwipsConverter.ToCentimeters(Int32)

...

|nopanel

...

=true}|
|[ToInches(Int32)

...

|TwipsConverter.ToInches(Int32)

...

]|{excerpt-include:TwipsConverter.ToInches(Int32)

...

|nopanel

...

=true}|
|[ToPoints(Int32)

...

|TwipsConverter.ToPoints(Int32)

...

]|{excerpt-include:TwipsConverter.ToPoints(Int32)

...

|nopanel

...

=true}|