IThemeResolutionService 接口

定义

提供一个接口,设计器工具开发人员可以使用此接口提供一组 ThemeProvider 对象,这些对象可以用于在设计时环境中将主题和控件外观应用于控件。Provides an interface that designer tool developers can use to supply a set of ThemeProvider objects, which can be used to apply themes and control skins to controls in a design-time environment.

public interface class IThemeResolutionService
public interface IThemeResolutionService
type IThemeResolutionService = interface
Public Interface IThemeResolutionService

注解

页面开发人员和控件作者不使用IThemeResolutionService界面。Page developers and control authors do not use the IThemeResolutionService interface. 接口由设计器工具开发人员实现, 以SkinBuilder在设计环境中提供控件生成器。 IThemeResolutionServiceThe IThemeResolutionService interface is implemented by designer tool developers to supply SkinBuilder control builders in the design environment.

是一个或多个ThemeProvider对象的容器, 它们反过来提供SkinBuilder在设计器中创建控件时对其应用主题和控件外观的对象。 IThemeResolutionServiceThe IThemeResolutionService is a container for one or more ThemeProvider objects, which in turn supply the SkinBuilder objects that apply themes and control skins to controls when they are created in a designer. IThemeResolutionService类的实例可以使用其ControlBuilder.ThemeResolutionService属性从给定ControlBuilder的实例访问。An instance of the IThemeResolutionService class can be accessed from a given ControlBuilder instance using its ControlBuilder.ThemeResolutionService property.

方法

GetAllThemeProviders()

获取 Array 对象的 ThemeProviderGets an Array of ThemeProvider objects.

GetStylesheetThemeProvider()

从样式表中获取表示自定义主题的 ThemeProvider 对象。Gets a ThemeProvider object that represents the customization theme from a style sheet.

GetThemeProvider()

获取一个表示 ASP.NET 页自定义主题的 ThemeProvider 对象。Gets a ThemeProvider object that represents the customization theme on an ASP.NET page.

适用于

另请参阅