ImportedFormRegionBase.GetFormRegionControl 方法

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

命名空间:  Microsoft.Office.Tools.Outlook
程序集:  Microsoft.Office.Tools.Outlook.v4.0.Utilities(在 Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll 中)

语法

声明
Protected Function GetFormRegionControl ( _
    identifier As String _
) As Object
protected Object GetFormRegionControl(
    string identifier
)

参数

  • identifier
    类型:System.String
    要在窗体区域的
    Microsoft.Vbe.Interop.Forms.UserForm 中查找的控件的名称。

返回值

类型:System.Object
identifier 指定的控件。

异常

异常 条件
InvalidOperationException

OutlookFormRegion 属性所指定的窗体区域为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ControlNotFoundException

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

.NET Framework 安全性

请参见

参考

ImportedFormRegionBase 类

Microsoft.Office.Tools.Outlook 命名空间