ThemeProvider.GetSkinsForControl(Type) 方法
定义
获取与指定的 Type 关联的外观标识符的 ICollection。Gets 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 定义了控件外观,则为外观标识符的 ICollection。An ICollection of skin identifiers, if control skins are defined for the specified Type. 如果类型没有任何关联控件外观,则返回空的 ICollection。If 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.