次の方法で共有


_Explorer.IsItemSelectableInView Method

Returns a value that indicates whether the specified Microsoft Outlook item can be selected in the current view of the active explorer.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function IsItemSelectableInView ( _
    Item As Object _
) As Boolean
'Usage
Dim instance As _Explorer
Dim Item As Object
Dim returnValue As Boolean

returnValue = instance.IsItemSelectableInView(Item)
[DispIdAttribute()]
bool IsItemSelectableInView(
    Object Item
)

Parameters

  • Item
    Type: System.Object

    The item that is being considered for selection.

Return Value

Type: System.Boolean
Returns a Boolean (bool for C#) value that indicates whether the specified item can be selected in the current view.

Remarks

Returns True if the item can be selected in the current view; otherwise returns False.

The method returns True or False depending on whether the item is selectable in the view. It does not indicate whether the item is visible in the view. If the item is contained within a collapsed group in the view, the method returns False.

If in-cell editing is turned on for the current view for the active explorer and in-cell editing is in progress on the item, the method returns False. If the current view is a table view, you can check for in-cell editing by using the AllowInCellEditing property of the TableView object. Similarly, if the current view is a card view, you can use the AllowInCellEditingproperty of the CardView object.

When you specify an item in a recurring appointment or task as argument to the IsItemSelectableInView method, make sure that before you pass the argument, you obtain an instance of the occurrence by first expanding the recurrences, using the IncludeRecurrences property and the Items collection. If you do not expand the recurrences and obtain an occurrence in the series, you would be passing an instance variable that represents the appointment or task series, and the IsItemSelectableInView method would be operating on the series instead of the occurrence.

The IsItemSelectableInView method raises an error if the current view is a conversation view.

See Also

Reference

_Explorer Interface

_Explorer Members

Microsoft.Office.Interop.Outlook Namespace