Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

A boolean value indicating whether or not to copy cell formatting. Cell formatting includes font, color, number formatting, fill color, fill pattern and borders.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public boolean CopyFormatting{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property CopyFormatting() As Boolean</p>Boolean
Example
 
Code Block
csharp
csharp
titleC#
            //--- Is the property object set to copy cell formatting?
          boolean willCopyFormatting = copyPasteProperties.CopyFormatting;

          //--- Set the property object to copy cell formatting.
          copyPasteProperties.CopyFormatting = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Is the property object set to copy cell formatting?
          Dim willCopyFormatting As Boolean = copyPasteProperties.CopyFormatting

          '--- Set the property object to copy cell formatting.
          copyPasteProperties.CopyFormatting = True
        
Example