ImportedFormRegion.GetFormRegionControl(String) 方法

定义

从表单区域的 Microsoft.Vbe.Interop.Forms.UserForm 返回指定控件。

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

参数

identifier
String

您将在窗体区域的 Microsoft.Vbe.Interop.Forms.UserForm 中定位到的控件的名称。

返回

identifier 指定的控件。

例外

OutlookFormRegion 属性所指定的窗体区域为 null

标识符与 .ofs 文件中的控件不匹配。

注解

如果手动创建继承自 ImportedFormRegion的窗体区域类,则调用此方法以从本机窗体区域的 返回 Outlook 窗体存储 (*.ofs) 文件中 Microsoft.Vbe.Interop.Forms.UserForm 标识的每个控件。

适用于