Partager via


FormRegionKindConstants Enumeration

Contains constants that specify whether the form region that a form region factory creates is based on a user control or an Outlook Form Storage (.ofs) file.

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

Syntax

'Declaration
Public Enumeration FormRegionKindConstants
public enum FormRegionKindConstants

Members

Member name Description
Ofs Specifies that the form region is imported from Outlook.

This constant specifies that the form region inherits from ImportedFormRegion.

If you return this constant in the Kind property of the form region factory class, you must return a valid Outlook Form Storage file in the GetFormRegionStorage method of the form region factory class.

WindowsForms Specifies that the form region is based on a user control.

This constant specifies that the form region inherits from Control.

If you return this constant in the Kind property of the form region factory class, the add-in does not call the GetFormRegionStorage method of the form region factory class.

Remarks

If you create a form region in code, return one of these constants in the Kind property of the form region factory class. A form region factory class is any class that you create that implements IFormRegionFactory.

The add-in gets the value of the Kind property to determine what type of form region to create.

If you return WindowsForms in the Kind property, the form region that the form region factory creates must inherit from Control.

If you return Ofs in the Kind property, the form region that the form region factory creates must inherit from ImportedFormRegion.

See Also

Reference

Microsoft.Office.Tools.Outlook Namespace