다음을 통해 공유


ImportedFormRegion.GetFormRegionControl Method

Returns the specified control from the Microsoft.Vbe.Interop.Forms.UserForm of the form region.

Namespace:  Microsoft.Office.Tools.Outlook
Assemblies:   Microsoft.Office.Tools.Outlook.v4.0.Utilities (in Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)

Syntax

'Declaration
Function GetFormRegionControl ( _
    identifier As String _
) As Object
Object GetFormRegionControl(
    string identifier
)

Parameters

  • identifier
    Type: System.String

    The name of the control that you would like to locate in the Microsoft.Vbe.Interop.Forms.UserForm of the form region.

Return Value

Type: System.Object
The control that is specified by identifier.

Exceptions

Exception Condition
InvalidOperationException

The form region specified by the OutlookFormRegion property is nulla null reference (Nothing in Visual Basic).

ControlNotFoundException

Identifier does not match a control in the .ofs file.

Remarks

If you manually create a form region class that inherits from ImportedFormRegion, call this method to return each control that is identified in the Outlook Form Storage (*.ofs) file from the Microsoft.Vbe.Interop.Forms.UserForm of the native form region.

.NET Framework Security

See Also

Reference

ImportedFormRegion Interface

Microsoft.Office.Tools.Outlook Namespace