语言

ThemeProvider.GetSkinsForControl(Type) 方法

定义

ICollection获取与指定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

要检索任何关联的外观名称的 A Type 。

返回

ICollection如果为指定的Type控件外观定义,则为皮肤标识符之一。 如果没有与类型关联的控件外观,则返回一个空 ICollection 。

注解

设计器 GetSkinsForControl 使用该方法填充控件外观名称的列表。 设计器使用列表绑定到用户界面(UI)元素或显示给定控件类型的设计属性。

适用于