Partager via


IFormRegionFactory.IsDisplayedForItem Method

Definition

Returns a value that indicates whether the form region should appear for the specified Microsoft Office Outlook item.

public:
 bool IsDisplayedForItem(System::Object ^ outlookItem, Microsoft::Office::Interop::Outlook::OlFormRegionMode formRegionMode, Microsoft::Office::Interop::Outlook::OlFormRegionSize formRegionSize);
public bool IsDisplayedForItem (object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize);
abstract member IsDisplayedForItem : obj * Microsoft.Office.Interop.Outlook.OlFormRegionMode * Microsoft.Office.Interop.Outlook.OlFormRegionSize -> bool
Public Function IsDisplayedForItem (outlookItem As Object, formRegionMode As OlFormRegionMode, formRegionSize As OlFormRegionSize) As Boolean

Parameters

outlookItem
Object

The Outlook item that caused the form region to load.

formRegionMode
OlFormRegionMode

The mode of the Outlook item that caused the form region to load. This mode is represented by the OlFormRegionMode enumeration.

formRegionSize
OlFormRegionSize

The type of form region being loaded. This mode is represented by the OlFormRegionSize enumeration.

Returns

A Boolean that indicates whether the form region should appear for the specified Outlook item.

Remarks

If you manually create a form region factory class, you can use this method to prevent an Outlook item from displaying the form region.

Applies to