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
Public Sub New (provider As ThemeProvider, control As Control, skinBuilder As ControlBuilder, themePath As String)
参数
- provider
- ThemeProvider
在设计器环境中封装控件主题信息的 ThemeProvider。A ThemeProvider that encapsulates theme information for controls in a designer environment.
- control
- Control
与 SkinBuilder 相关联的 Control。The Control with which the SkinBuilder is associated. ApplyTheme() 方法将控件外观应用于该控件并返回该控件。The ApplyTheme() method applies a control skin to this control and returns it.
- skinBuilder
- ControlBuilder
由 ThemeProvider 为该控件的类型提供的 ControlBuilder。A ControlBuilder provided by the ThemeProvider for the control's type.
- themePath
- String
主题文件的绝对路径。The absolute path to the theme file.
注解
此构造函数由类的 GetSkinBuilder 方法调用 ThemeProvider ,以返回 SkinBuilder 在参数中指定的控件的对象 control 。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.