Edit

Share via


Selection Interface

Definition

Contains the set of Outlook items currently selected in an explorer.

public interface class Selection : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00063087-0000-0000-C000-000000000046")]
public interface Selection : System.Collections.IEnumerable
Public Interface Selection
Implements IEnumerable
Attributes
Implements

Remarks

Use the Selection property to return the Selection collection from the Explorer object.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

Item[Object]

Returns an Outlook item from a collection.

Location

Returns an OlSelectionLocation constant that specifies where in the Microsoft Outlook user interface the current selection is. Read-only.

Parent

Returns the parent Object of the specified object. Read-only.

Session

Returns the NameSpace object for the current session. Read-only.

Methods

GetSelection(OlSelectionContents)

Returns a Selection object that contains the kind of objects specified by the SelectionContents parameter, and that are currently selected in the active explorer.

Applies to