ExpertXls Excel Library for .NET
InsertColumn Method (columnIndex, inheritStyle, fromPrevious)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorksheet ► InsertColumn(Int32, Boolean, Boolean)
ExpertXls Excel Library for .NET
Inserts a column with style at the specified one based index in worksheet. If inheritStyle parameter is false the new column will have the default style of the worksheet. If inheritStyle is true the new column will inherit the style from the previous column if fromPrevious parameter is true or from the next column if the fromPrevious parameter is false.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void InsertColumn(
    	int columnIndex,
    	bool inheritStyle,
    	bool fromPrevious
    )

    Public Sub InsertColumn ( _
    	columnIndex As Integer, _
    	inheritStyle As Boolean, _
    	fromPrevious As Boolean _
    )

    public:
    void InsertColumn(
    	int columnIndex,
    	bool inheritStyle,
    	bool fromPrevious
    )

Parameters

columnIndex (Int32)
  The one based index of the new column.

inheritStyle (Boolean)
  A flag indicating if the new column should inherit the style from the previous or the next column function of the fromPrevious parameter.

fromPrevious (Boolean)
  A flag indicating if the style should be inherited from the previous or from the next column. This flag has effect only when inheritStyle is true.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)