Share via


_NavigationFolder.IsSelected Property

Returns or sets a Boolean variable (bool in C#) that indicates whether the NavigationFolder object is selected for display. Read/write.

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

Syntax

'Declaration
Property IsSelected As Boolean
    Get
    Set
'Usage
Dim instance As _NavigationFolder
Dim value As Boolean

value = instance.IsSelected

instance.IsSelected = value
bool IsSelected { get; set; }

Property Value

Type: System.Boolean

Remarks

Navigation folders contained in a Calendar navigation module are treated differently than navigation folders in other navigation modules.

If the active explorer uses the Day/Week/Month or Day/Week/Month View with AutoPreview view to display navigation folders in the Calendar navigation module, this property returns True if the navigation folder is checked in the Navigation Pane (and is therefore displayed either in side-by-side or overlay mode in the active explorer.) Setting this property to False removes a calendar from display in the active explorer. An error occurs if this property is set to True for more than 30 navigation folders.

If the active explorer uses another view, such as the All Appointments view, to display navigation folders in the Calendar navigation module, or in navigation modules other than the Calendar navigation module, this property returns True if the navigation folder is selected and currently displayed in the active explorer; otherwise, the property returns False.

In either case, an error occurs if the value of this property is set to False for all NavigationFolder objects in the parent NavigationFolders collection, or if the NavigationFolder object is contained by a navigation module other than the navigation module currently displayed in the Navigation Pane.

The SelectedChange event for the parent NavigationFolders collection is raised if the value of this property is changed for a NavigationFolder object in a Calendar navigation module, regardless of the current view.

See Also

Reference

_NavigationFolder Interface

_NavigationFolder Members

Microsoft.Office.Interop.Outlook Namespace