Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}Sets or returns an {{int}} that represents the page width for this section in twips. One twip = \(1/20 pt\) or \(1/1440 in\)

...

\)

{remarks}
{example}{code:csharp|title=C#}

          //--- Return PageWidth
          int pageWidth = oSection.PageWidth;

          //--- Set PageWidth to 8.5 inches
          oSection.PageWidth = 12240;
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Return PageWidth
          Dim pageWidth As Integer = oSection.PageWidth

          '--- Set PageWidth to 8.5 inches
          oSection.PageWidth = 12240
        {code}

{example}
Signature
C#C#
{excerpt}
{signature:C#}
 public int PageWidth{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property PageWidth() As Integer
Remarks
Page width may not be smaller than
{signature}
{remarks}Page width may not be smaller than .1" \(144 twips\) or larger than 22" \(31680 twips\). Values beyond these will be automatically adjusted.


MS Word equivalent: File menu > Page Setup... > Paper tab > Paper size: section > Width: \-\- \(Make sure Apply to: This section is selected
)
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle