Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a value that indicates whether the form region should appear for the specified Microsoft Office Outlook item.
Namespace:  Microsoft.Office.Tools.Outlook
Assembly:  Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)
Syntax
'Declaration
Function IsDisplayedForItem ( _
    outlookItem As Object, _
    formRegionMode As OlFormRegionMode, _
    formRegionSize As OlFormRegionSize _
) As Boolean
bool IsDisplayedForItem(
    Object outlookItem,
    OlFormRegionMode formRegionMode,
    OlFormRegionSize formRegionSize
)
Parameters
- outlookItem 
 Type: System.Object- The Outlook item that caused the form region to load. 
- formRegionMode 
 Type: Microsoft.Office.Interop.Outlook.OlFormRegionMode- The mode of the Outlook item that caused the form region to load. This mode is represented by the OlFormRegionMode enumeration. 
- formRegionSize 
 Type: Microsoft.Office.Interop.Outlook.OlFormRegionSize- The type of form region being loaded. This mode is represented by the OlFormRegionSize enumeration. 
Return Value
Type: System.Boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.