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 whether comments on the worksheet should be printed.

(This is not supported for charts.)

Signature
C#
C#
 public boolean PrintComments{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property PrintComments() As Boolean
{signature}
{remarks}
If the comments should be printed at the end of the worksheet, then set the [PrintCommentsAtEnd|PageSetup.PrintCommentsAtEnd] property to true, otherwise the comments will be printed as they are displayed.
{remarks}
{example}{code:csharp|title=C#}
Remarks

If the comments should be printed at the end of the worksheet, then set the PrintCommentsAtEnd property to true, otherwise the comments will be printed as they are displayed.

Example
Code Block
csharp
csharp
titleC#


          //--- Get PrintComments
          bool prntComments = ps.PrintComments

          //--- Set PrintComments
          ps.PrintComments = true;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get PrintComments
          Dim prntComments As Boolean = ps.PrintComments

          '--- Set PrintComments
          ps.PrintComments = True
        
{code} {example}