System.Web.UI.WebControls.Style.MergeWith Method

Combines the style properties of the specified System.Web.UI.WebControls.Style with the instance of the System.Web.UI.WebControls.Style class that this method is called from.

Syntax

public virtual void MergeWith (Style s)

Parameters

s
A System.Web.UI.WebControls.Style that represents the style to combine.

Remarks

Use the Style.MergeWith(Style) method to combine the style properties of the specified System.Web.UI.WebControls.Style with the instance of the System.Web.UI.WebControls.Style class that this method is called from.

Note:

All properties, except those that have already been set on the current instance of the Style class, will be replaced by the corresponding property of the System.Web.UI.WebControls.Style specified by the s parameter.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0