_Explorer.Selection Property

Returns a Selection object consisting of one or more items selected in the current view. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property Selection As Selection
    Get
'Usage
Dim instance As _Explorer
Dim value As Selection

value = instance.Selection
[DispIdAttribute()]
Selection Selection { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.Selection

Remarks

If the current folder is a file-system folder, or if Microsoft Outlook Today or any folder with a Web view is currently displayed, this property returns an empty collection. Also if a group header is selected, the Count property on the selection returns zero.

See Also

Reference

_Explorer Interface

_Explorer Members

Microsoft.Office.Interop.Outlook Namespace