共用方式為


FormRegionBase Class

Definition

Represents an Outlook form region that is based on a user control.

public ref class FormRegionBase abstract : System::Windows::Forms::UserControl, Microsoft::Office::Tools::IExtension, Microsoft::Office::Tools::Outlook::IFormRegion
[System.ComponentModel.ToolboxItem(false)]
public abstract class FormRegionBase : System.Windows.Forms.UserControl, Microsoft.Office.Tools.IExtension, Microsoft.Office.Tools.Outlook.IFormRegion
[<System.ComponentModel.ToolboxItem(false)>]
type FormRegionBase = class
    inherit UserControl
    interface IFormRegion
    interface IExtension
Public MustInherit Class FormRegionBase
Inherits UserControl
Implements IExtension, IFormRegion
Inheritance
FormRegionBase
Attributes
Implements

Remarks

If you add an Outlook Form Region item to an Outlook add-in project, and select Design a new form region in the first page of the New Outlook Form Region wizard, Visual Studio adds a form region class that inherits from FormRegionBase.

Usage

This type is used only in Office projects that target the .NET Framework 4 or later. The assembly that defines this type is not part of the Visual Studio Tools for Office runtime. You must deploy this assembly with your solution. For more information, see Assemblies in the Visual Studio Tools for Office Runtime.

Constructors

FormRegionBase(Factory, FormRegion)

Properties

Base

Gets the FormRegionControl object that this FormRegionBase object extends.

Factory

Gets or sets the form region factory that is associated with this FormRegionBase.

Manifest

Gets the FormRegionManifest that describes how the form region appears in Outlook.

OutlookFormRegion

Gets or sets the native form region object.

OutlookItem

Gets the Outlook item in which the form region appears.

Methods

Dispose(Boolean)

Releases the resources used by the FormRegionBase.

OnShutdown()

Occurs before the form region is closed.

OnStartup()

Occurs after an instance of the form region is created but before the form region appears.

Events

FormRegionClosed

Occurs before the form region is closed.

FormRegionShowing

Occurs after an instance of the form region is created but before the form region appears.

Explicit Interface Implementations

IExtension.ExtensionBase

Applies to