Style.GetStyleAttributes Method

Retrieves the System.Web.UI.CssStyleCollection object for the specified System.Web.UI.IUrlResolutionService-implemented object.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
CssStyleCollection^ GetStyleAttributes (
	IUrlResolutionService^ urlResolver
)
public CssStyleCollection GetStyleAttributes (
	IUrlResolutionService urlResolver
)
public function GetStyleAttributes (
	urlResolver : IUrlResolutionService
) : CssStyleCollection
Not applicable.

Parameters

urlResolver

A System.Web.UI.IUrlResolutionService-implemented object that contains the context information for the current location (URL).

Return Value

A System.Web.UI.CssStyleCollection object.

Use the GetStyleAttributes method to retrieve the System.Web.UI.CssStyleCollection object for a specified System.Web.UI.IUrlResolutionService-implemented object. All classes derived from Control implement System.Web.UI.IUrlResolutionService.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: