SkinBuilder(ThemeProvider, Control, ControlBuilder, String) 构造函数

定义

初始化 SkinBuilder 类的新实例,设置与生成器相关联的控件、ThemeProvider 对象为该控件提供的通用 ControlBuilder 对象,以及主题文件的路径。

public:
 SkinBuilder(System::Web::UI::ThemeProvider ^ provider, System::Web::UI::Control ^ control, System::Web::UI::ControlBuilder ^ skinBuilder, System::String ^ themePath);
public SkinBuilder (System.Web.UI.ThemeProvider provider, System.Web.UI.Control control, System.Web.UI.ControlBuilder skinBuilder, string themePath);
new System.Web.UI.SkinBuilder : System.Web.UI.ThemeProvider * System.Web.UI.Control * System.Web.UI.ControlBuilder * string -> System.Web.UI.SkinBuilder
Public Sub New (provider As ThemeProvider, control As Control, skinBuilder As ControlBuilder, themePath As String)

参数

provider
ThemeProvider

在设计器环境中封装控件主题信息的 ThemeProvider

control
Control

SkinBuilder 相关联的 ControlApplyTheme() 方法将控件外观应用于该控件并返回该控件。

skinBuilder
ControlBuilder

ThemeProvider 为该控件的类型提供的 ControlBuilder

themePath
String

主题文件的绝对路径。

注解

此构造函数由类的 GetSkinBuilder 方法调用 ThemeProvider ,以返回 SkinBuilder 在参数中指定的控件的对象 control

适用于

另请参阅