Export (0) Print
Expand All

_Table.EndOfTable Property

Returns a Boolean (bool in C#) that indicates whether the current row is positioned after the last row in the Table object. Read-only.

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

bool EndOfTable { get; }

Property Value

Type: System.Boolean

When you open a Table using MAPIFolder.GetTable, Search.GetTable, or _Table.Restrict, the value of EndOfTable depends on the number of rows in the Table. If there are no rows, EndOfTable returns True. If there are rows, EndOfTable returns False until the cursor moves beyond the last row in the Table.

The Table has two virtual Null rows, one before the first row and one after the last row in the Table. Each call to _Table.GetNextRow moves the current row to the next row in the Table and returns a Row object that represents the current row.

The EndOfTable property returns True if the current row is after the last row and False if the current row is on or before the last row.

© 2015 Microsoft