ImportedFormRegion.GetFormRegionControl(String) Method

Definition

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

public:
 System::Object ^ GetFormRegionControl(System::String ^ identifier);
public object GetFormRegionControl (string identifier);
abstract member GetFormRegionControl : string -> obj
Public Function GetFormRegionControl (identifier As String) As Object

Parameters

identifier
String

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

Returns

The control that is specified by identifier.

Exceptions

The form region specified by the OutlookFormRegion property is null.

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.

Applies to