This documentation is archived and is not being maintained.

_Table.Columns Property

Returns a Columns collection object that contains the columns defined for the Table. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Columns Columns { get; }

The Columns collection object is the default member of the Table object.

While rows in a Table correspond to items in the parent Folder or Search object of the Table, Columns in a Table correspond to the properties of these items. Default columns are defined for all folders depending on the parent folder of the Table object. For example, the default properties for the Inbox are: EntryID, Subject, CreationTime, LastModificationTime, and MessageClass. For more information on default properties for a Table, see Default Properties Displayed in a Table Object.

To add Column objects to the Columns collection of a Table, use _Columns.Add. To remove the default column set, use _Columns.RemoveAll. For more information on adjusting columns of a Table, see Adding Columns to a Table Object.