Page tree

Versions Compared

Key

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

Excerpt

Sets or returns the value for the top margin in inches. This is the space between the worksheet data and the top edge of the printed page. This is set to 1 by default. The valid range of values are 0 through 100, and is also limited by paper size.

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

          //--- Get TopMargin
          double tpMargin = ps.TopMargin;

          //--- Set TopMargin
          ps.TopMargin = 1.5;
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get TopMargin
          Dim tpMargin As Double = ps.TopMargin

          '--- Set TopMargin
          ps.TopMargin = 1.5
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns the value for the top margin in inches. This is the space between the worksheet data and the top edge of the printed page. This is set to 1 by default. The valid range of values are 0 through 100, and is also limited by paper size.{excerpt}
{signature:C#}
 public double TopMargin{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property TopMargin() As Double
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle