Page tree

Versions Compared

Key

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

Description

Excerpt

Sets whether ExcelWriter should truncate imported data rows and columns that do not fit within the target rows and columns in the spreadsheet. If Truncate is not enabled, an exception will be thrown if the number of rows or columns imported exceeds the number of target rows or columns in the spreadsheet.

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 Truncate{ set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public WriteOnly Property Truncate() As Boolean</p>Boolean
Example
 
Code Block
csharp
csharp
titleC#
            //--- Get Truncate
          bool truncate = importProps.Truncate;

          //--- Set Truncate
          importProps.Truncate = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Get Truncate
          Dim truncate As Boolean = importProps.Truncate

          '--- Set Truncate
          importProps.Truncate = True
        
Example