NativeExcel for .Net Developer's Reference

IWorksheet.SplitColumn Property

Returns or sets the column number where the worksheet is split into panes (the number of colums to the left of the split line).

[Visual Basic]
PropertySplitColumnAsDouble
[C#]
doubleSplitColumn{get;set;}
[C++]
__propertydoubleget_SplitColumn();
__propertyvoidset_SplitColumn(double);
[JScript]
functiongetSplitColumn():double
functionsetSplitColumn(double);

Example

This example splits the worksheet one so that there are 2 columns to the left of the split line.

[C#]
book.Worksheets[1].SplitColumn = 2;
[VisualBasic]
book.Worksheets(1).SplitColumn = 2
[C++]
book->Worksheets->Item[1]->SplitColumn = 2;

See Also

IWorksheet Interface | NativeExcel Namespace | Split Property | FreezePanes Property | SplitRow Property