Version

Remove Method (WorksheetColumnCollection)

Removes one or more columns from the collection
Syntax
public void Remove( 
   int index,
   int count
)

Parameters

index
the index of the first column to remove point
count
The number of columns to remove
Exceptions
ExceptionDescription
System.InvalidOperationExceptionIf the operation is not allowed, e.g. if it the range intersects with a protected region.
System.IndexOutOfRangeExceptionIf index is negative.
System.ArgumentOutOfRangeExceptionIf count is less than 1.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also