NativeExcel for .Net Developer's Reference

IRangeColumn Interface

Represents a column. The IRangeColumn interface is a member of the IRangeColumns collection.

For a list of all members of this type, see IRangeColumn Members.

[Visual Basic]
PublicInterfaceIRangeColumn
ImplementsIRange, IEnumerable
[C#]
publicinterfaceIRangeColumn:IRange, IEnumerable
[C++]
public__gc__interfaceIRangeColumn: publicIRange, IEnumerable
[JScript]
publicinterfaceIRangeColumnextendsIRange, IEnumerable

Remarks

Use the IRangeColumns.Item property to return the IRangeColumn interface.

Use the IRange.Columns property to return the IRangeColumns collection.

Example

This example changes the width of the second column.

[C#]
 IRangeColumn col = book.Worksheets[1].Range.Columns[2];
 col.ColumnWidth = 15;
[VisualBasic]
 Dim col As IRangeColumn = book.Worksheets(1).Range.Columns(2)
 col.ColumnWidth = 15
[C++]
 IRangeColumn* col = book->Worksheets->Item[1]->Range->Columns->Item[2];
 col->ColumnWidth = 15;   

Requirements

Namespace: NativeExcel

Assembly: NativeExcel (in NativeExcel.dll)

See Also

IRangeColumn Members | NativeExcel Namespace | IRangeColumns.Item Property | Columns | IRangeColumns | ColumnWidth