Style.GetStyleAttributes Method

Note: This method is new in the .NET Framework version 2.0.

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

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: