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. IThemeResolutionService介面是由設計工具開發人員所執行,可 SkinBuilder 在設計環境中提供控制項產生器。The IThemeResolutionService interface is implemented by designer tool developers to supply SkinBuilder control builders in the design environment.

IThemeResolutionService是一個或多個物件的容器 ThemeProvider ,而這些物件會接著提供在 SkinBuilder 設計工具中建立控制項時,將主題和控制面板套用至控制項的物件。The 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 使用其屬性,從指定的實例存取類別的實例 ControlBuilder.ThemeResolutionServiceAn 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.

適用於

另請參閱