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
Wiki Markup
{description}
{excerpt}Sets or returns the area of the worksheet that will be printed. Content outside of this area will not be printed.

 _(This is not supported for charts.)_{excerpt}
{signature:C#}
 public Area PrintArea{ get; set; }
{signature}{signature:vb.net}
Public Property PrintArea() As Area
{signature}
{remarks}
By default all of the content will be printed, and PrintArea will return an area covering the entire worksheet.
{remarks}
{example}{code:csharp|title=C#}

          //--- Get PrintArea
          Area prntArea = ps.PrintArea;

          //--- Set PrintArea
          ps.PrintArea = prntArea;
        {code}
{code:vb.net|title=vb.net}

          '--- Get PrintArea
          Dim prntArea As Area = ps.PrintArea

          '--- Set PrintArea
          ps.PrintArea = prntArea
        {code}

{example}