ApplyStyle Method

WebControl.ApplyStyle Method

Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.

[Visual Basic]
Public Sub ApplyStyle( _
   ByVal s As Style _
public void ApplyStyle(
 Style s
public: void ApplyStyle(
 Style* s
public function ApplyStyle(
   s : Style


A Style that represents the style to be copied.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

WebControl Class | WebControl Members | System.Web.UI.WebControls Namespace | MergeStyle | Style

© 2015 Microsoft