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

定义

初始化 SkinBuilder 类的新实例,设置与生成器相关联的控件、ThemeProvider 对象为该控件提供的通用 ControlBuilder 对象,以及主题文件的路径。Initializes a new instance of the SkinBuilder class, setting the control with which the builder is associated, the general ControlBuilder object provided by the ThemeProvider object for the control, and a path to the theme file.

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

参数

provider
ThemeProvider

在设计器环境中封装控件主题信息的 ThemeProviderA ThemeProvider that encapsulates theme information for controls in a designer environment.

control
Control

SkinBuilder 相关联的 ControlThe Control with which the SkinBuilder is associated. ApplyTheme() 方法将控件外观应用于该控件并返回该控件。The ApplyTheme() method applies a control skin to this control and returns it.

skinBuilder
ControlBuilder

ThemeProvider 为该控件的类型提供的 ControlBuilderA ControlBuilder provided by the ThemeProvider for the control's type.

themePath
String

主题文件的绝对路径。The absolute path to the theme file.

注解

GetSkinBuilder此构造函数由ThemeProvider类的方法调用, 以返回SkinBuildercontrol参数中指定的控件的对象。This constructor is called by the GetSkinBuilder method of the ThemeProvider class to return a SkinBuilder object for the control specified in the control parameter.

适用于

另请参阅