ControlSkin(Type, ControlSkinDelegate) 构造函数
定义
使用所传递的 Control 类型和委托创建 ControlSkin 类的新实例。Creates a new instance of the ControlSkin class using the passed Control type and delegate.
public:
ControlSkin(Type ^ controlType, System::Web::UI::ControlSkinDelegate ^ themeDelegate);
public ControlSkin (Type controlType, System.Web.UI.ControlSkinDelegate themeDelegate);
new System.Web.UI.ControlSkin : Type * System.Web.UI.ControlSkinDelegate -> System.Web.UI.ControlSkin
Public Sub New (controlType As Type, themeDelegate As ControlSkinDelegate)
参数
- controlType
- Type
将外观应用到的 Control 的 Type,用于使已命名外观的类型保持一致。The Type of Control to which the skin is applied, used to enforce type consistency among named skins.
- themeDelegate
- ControlSkinDelegate
一个 ControlSkinDelegate,用于将控件外观文件中定义的样式元素应用于由 controlType 参数标识的类型。The ControlSkinDelegate that applies the style elements defined in a control skin file to the type identified by the controlType parameter.