PropertyTabAttribute.InitializeArrays 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化该特性。
重载
| InitializeArrays(String[], PropertyTabScope[]) | 
						 使用指定的选项卡类名称和选项卡范围数组初始化该特性。  | 
        	
| InitializeArrays(Type[], PropertyTabScope[]) | 
						 使用指定的选项卡类名称和选项卡范围数组初始化该特性。  | 
        	
InitializeArrays(String[], PropertyTabScope[])
- Source:
 - PropertyTabAttribute.cs
 
- Source:
 - PropertyTabAttribute.cs
 
- Source:
 - PropertyTabAttribute.cs
 
使用指定的选项卡类名称和选项卡范围数组初始化该特性。
protected:
 void InitializeArrays(cli::array <System::String ^> ^ tabClassNames, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
	protected void InitializeArrays (string[] tabClassNames, System.ComponentModel.PropertyTabScope[] tabScopes);
	protected void InitializeArrays (string[]? tabClassNames, System.ComponentModel.PropertyTabScope[]? tabScopes);
	member this.InitializeArrays : string[] * System.ComponentModel.PropertyTabScope[] -> unit
	Protected Sub InitializeArrays (tabClassNames As String(), tabScopes As PropertyTabScope())
	参数
- tabClassNames
 - String[]
 
类型的完全限定类型名的数组,这些类型是为“属性”窗口上的选项卡创建的。
- tabScopes
 - PropertyTabScope[]
 
每个选项卡的范围。如果范围是 Component,则只为具有相应 PropertyTabAttribute 的组件显示它。 如果它是 Document,则将为该文档的所有组件显示它。
例外
              tabScopes 中的一个或多个值不是 Document 或 Component。
- 或 -
              tabClassNames 的长度和 tabScopes 数组的长度不匹配。
- 或 -
              tabClassNames 或 tabScopes 为 null。
注解
InitializeArrays 提供了一个实用工具函数,该函数可用于设置此 PropertyTabAttribute 指定的选项卡类的类型。
适用于
InitializeArrays(Type[], PropertyTabScope[])
- Source:
 - PropertyTabAttribute.cs
 
- Source:
 - PropertyTabAttribute.cs
 
- Source:
 - PropertyTabAttribute.cs
 
使用指定的选项卡类名称和选项卡范围数组初始化该特性。
protected:
 void InitializeArrays(cli::array <Type ^> ^ tabClasses, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
	protected void InitializeArrays (Type[] tabClasses, System.ComponentModel.PropertyTabScope[] tabScopes);
	protected void InitializeArrays (Type[]? tabClasses, System.ComponentModel.PropertyTabScope[]? tabScopes);
	member this.InitializeArrays : Type[] * System.ComponentModel.PropertyTabScope[] -> unit
	Protected Sub InitializeArrays (tabClasses As Type(), tabScopes As PropertyTabScope())
	参数
- tabClasses
 - Type[]
 
要创建的选项卡的类型。
- tabScopes
 - PropertyTabScope[]
 
每个选项卡的范围。如果范围是 Component,则只为具有相应 PropertyTabAttribute 的组件显示它。 如果它是 Document,则将为该文档的所有组件显示它。
例外
              tabScopes 中的一个或多个值不是 Document 或 Component。
- 或 -
              tabClassNames 的长度和 tabScopes 数组的长度不匹配。
- 或 -
              tabClassNames 或 tabScopes 为 null。
注解
InitializeArrays 提供了一个实用工具函数,该函数可用于设置此 PropertyTabAttribute 指定的选项卡类的类型。