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

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
C#
C#
<p> public double TopMargin{ get; set; }</p>
Signature
vb.net
vb.net
<p>Public Property TopMargin() As Double</p>

Example
Code Block
csharp
csharp
titleC#
          //--- Get TopMargin
          double tpMargin = ps.TopMargin;

          //--- Set TopMargin
          ps.TopMargin = 1.5;
        
Code Block
vb.net
vb.net
titlevb.net
          '--- Get TopMargin
          Dim tpMargin As Double = ps.TopMargin

          '--- Set TopMargin
          ps.TopMargin = 1.5