編輯

共用方式為


_Explorer.IsItemSelectableInView(Object) Method

Definition

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

public:
 bool IsItemSelectableInView(System::Object ^ Item);
public bool IsItemSelectableInView (object Item);
Public Function IsItemSelectableInView (Item As Object) As Boolean

Parameters

Item
Object

The item that is being considered for selection.

Returns

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.

Applies to