NativeExcel for .Net Developer's Reference

IRange.EntireColumn Property

Returns an IRangeColumns interface that represents the entire column (or columns) that contains the specified range.

[Visual Basic]
PropertyReadOnlyEntireColumnAsIRangeColumns
[C#]
IRangeColumnsEntireColumn{get;}
[C++]
__propertyIRangeColumns*get_EntireColumn();
[JScript]
functiongetEntireColumn():IRangeColumns

Property Value

IRangeColumns interface.

Example

This example sets the value of the first cell in the first column that contains the selected range.

[C#]
 book.Worksheets[1].Selection.EntireColumn[1, 1].Value = 10;
[VisualBasic]
 book.Worksheets(1).Selection.EntireColumn(1, 1).Value = 10
[C++]
 book->Worksheets->Item[1]->Selection->EntireColumn->Item[1, 1]->Value = 10;

See Also

IRange Interface | NativeExcel Namespace | Selection Property | EntireRow Property | IRangeColumns Interface