IThemeResolutionService Interface

Definition

提供一個可以讓設計工具的開發者供應一組 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

Remarks

網頁開發人員和控制項作者不會使用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 屬性ControlBuilder.ThemeResolutionService , 從指定的實例存取類別的實例。An instance of the IThemeResolutionService class can be accessed from a given ControlBuilder instance using its ControlBuilder.ThemeResolutionService property.

Methods

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.

Applies to

See also