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.
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
'Declaration <GuidAttribute("00063096-0000-0000-C000-000000000046")> _ <CoClassAttribute(GetType(TableViewClass))> _ Public Interface TableView _ Inherits _TableView 'Usage Dim instance As TableView
[GuidAttribute("00063096-0000-0000-C000-000000000046")] [CoClassAttribute(typeof(TableViewClass))] public interface TableView : _TableView
This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _TableView.
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.