NativeExcel for .Net Developer's Reference

IWorksheet.ScrollColumn Property

Gets or sets the first visible column.

[Visual Basic]
Property ScrollColumn As Integer
[C#]
int ScrollColumn { get; set; }
[C++]
__property int get_ScrollColumn();
__property void set_ScrollColumn(int );
[JScript]
function get ScrollColumn() : int
function set ScrollColumn(int);

Property Value

The one-based index number of the column.

Example

This example sets the first visible column to 2.

[C#]
book.Worksheets[1].ScrollColumn = 2;
[Visual Basic]
book.Worksheets(1).ScrollColumn = 2
[C++]
book->Worksheets->Item[1]->ScrollColumn = 2;

See Also

IWorksheet Interface | NativeExcel Namespace | ScrollRow Property