_NavigationPane.DisplayedModuleCount Property

Returns or sets an Integer (int in C#) value that indicates the number of NavigationModule objects displayed in the Navigation Pane. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property DisplayedModuleCount As Integer
    Get
    Set
'Usage
Dim instance As _NavigationPane
Dim value As Integer

value = instance.DisplayedModuleCount

instance.DisplayedModuleCount = value
[DispIdAttribute()]
int DisplayedModuleCount { get; set; }

Property Value

Type: System.Int32

Remarks

This property can only be set to a value between 0 and the value of the Count property for the Modules collection of the NavigationPane object. If this property is set to a value greater than the maximum allowable value, the property value is automatically set to the maximum allowable value. An error occurs if this property is set to less than 0.

If the IsCollapsed property of the NavigationPane object is set to False, then this property value represents the number of navigation modules for which both icon and name are displayed in the Navigation Pane. If IsCollapsed is set to True, then the DisplayedModuleCount property value represents the number of navigation modules for which an icon is displayed in the Navigation Pane.

Setting the value of this property resizes the Modules section of the Navigation Pane to display more or fewer NavigationModule objects as needed.

See Also

Reference

_NavigationPane Interface

_NavigationPane Members

Microsoft.Office.Interop.Outlook Namespace