ThemeProvider.GetSkinsForControl(Type) 方法

定义

获取与指定的 Type 关联的外观标识符的 ICollectionGets an ICollection of skin identifiers that are associated with the specified Type.

public:
 System::Collections::ICollection ^ GetSkinsForControl(Type ^ type);
public System.Collections.ICollection GetSkinsForControl (Type type);
member this.GetSkinsForControl : Type -> System.Collections.ICollection
Public Function GetSkinsForControl (type As Type) As ICollection

参数

type
Type

要为其检索所有关联外观名称的 TypeA Type for which to retrieve any associated skin names.

返回

ICollection

如果指定的 Type 定义了控件外观,则为外观标识符的 ICollectionAn ICollection of skin identifiers, if control skins are defined for the specified Type. 如果类型没有任何关联控件外观,则返回空的 ICollectionIf no control skins are associated with the type, an empty ICollection is returned.

注解

GetSkinsForControl设计器使用方法来填充控件外观名称的列表。The GetSkinsForControl method is used by designers to populate lists of control skin names. 设计器使用该列表绑定到用户界面 (UI) 元素或显示给定控件类型的设计属性。Designers use the list to bind to user interface (UI) elements or to display design properties for a given control type.

适用于