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]
Public Interface IRangeColumn
    Implements IRange, IEnumerable
[C#]
public interface IRangeColumn : IRange, IEnumerable
[C++]
public __gc __interface IRangeColumn : public IRange, IEnumerable
[JScript]
public interface IRangeColumn extends IRange, 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;
[Visual Basic]
 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