Compartir a través de


TableView Object (Outlook)

Represents a view that displays Outlook items in a table, with each item in a row and the details of the item in the columns.

Version Information

Version Added: Outlook 2007

Remarks

The TableView object, derived from the View object, allows you to create customizable views that allow you to display Outlook items in a table.

Outlook provides several built-in TableView objects, and you can also create custom TableView objects. Use the Add method of the Views collection to add a new TableView to a Folder object. Use the Standard property to determine if an existing TableView object is built-in or custom.

You can configure the appearance and functionality of the TableView object. Use the AutomaticColumnSizing property to determine whether the view automatically resizes columns and the AutomaticGrouping property to determine if the view automatically groups Outlook items. Use the AutoPreview property to determine whether preview information is displayed within the row for an Outlook item in the view, and the AutoPreviewFont property to specify the font used to display preview information. Use the Multiline property to determine whether to show Outlook items in multiline mode.

You can also configure how Outlook items appear within the TableView object. Use the ColumnFont property to specify the font used for column headers and the RowFont property to specify the font used for Outlook items in the view. Use the AllowInCellEditing property to allow editing of Outlook item property values in the view. Use the Filter property to determine which Outlook items to display in the view and the ViewFields collection to specify the Outlook item properties to display for each Outlook item. Use the GroupByFields to specify the Outlook item properties by which Outlook items are grouped, and the SortFields collection to specify the Outlook item properties by which Outlook items are sorted in the view.

The definition for each TableView object is stored in Extensible Markup Language (XML) format. Use the XML property to work with the XML definition for the TableView object.

Use the Apply method to apply any changes made to the TableView object to the current view. Use the Save method to persist any changes made to the TableView object. Use the LockUserChanges property to allow or prevent changes to the user interface for the view.

You can change built-in TableView objects, but you cannot delete them. Use the Delete method to delete a custom TableView object. Use the Reset method to reset the properties of a built-in TableView object to their default values.

See Also

Concepts

TableView Object Members

Outlook Object Model Reference