Style.FillStyleAttributes(CssStyleCollection, IUrlResolutionService) 方法

定義

將指定物件的樣式屬性加入 CssStyleCollection 物件中。Adds the specified object's style properties to a CssStyleCollection object.

protected:
 virtual void FillStyleAttributes(System::Web::UI::CssStyleCollection ^ attributes, System::Web::UI::IUrlResolutionService ^ urlResolver);
protected virtual void FillStyleAttributes (System.Web.UI.CssStyleCollection attributes, System.Web.UI.IUrlResolutionService urlResolver);
abstract member FillStyleAttributes : System.Web.UI.CssStyleCollection * System.Web.UI.IUrlResolutionService -> unit
override this.FillStyleAttributes : System.Web.UI.CssStyleCollection * System.Web.UI.IUrlResolutionService -> unit
Protected Overridable Sub FillStyleAttributes (attributes As CssStyleCollection, urlResolver As IUrlResolutionService)

參數

attributes
CssStyleCollection

要加入樣式屬性的 CssStyleCollection 物件。The CssStyleCollection object to which to add the style properties.

urlResolver
IUrlResolutionService

IUrlResolutionService 實作的物件,包含目前位置 (URL) 的內容資訊。A IUrlResolutionService -implemented object that contains the context information for the current location (URL).

備註

使用方法,將物件的樣式屬性加入至指定System.Web.UI.CssStyleCollection的物件。 FillStyleAttributesUse the FillStyleAttributes method to add the style properties of an object to the specified System.Web.UI.CssStyleCollection object. 您所指定的物件必須執行System.Web.UI.IUrlResolutionServiceThe object that you specify must implement System.Web.UI.IUrlResolutionService. 衍生自的Control所有類別System.Web.UI.IUrlResolutionService都會執行。All classes derived from Control implement System.Web.UI.IUrlResolutionService.

適用於

另請參閱