System.Web.UI.WebControls.PanelStyle.MergeWith Method

Combines the style settings of the specified System.Web.UI.WebControls.Style object with the current instance of the System.Web.UI.WebControls.PanelStyle class.

Syntax

public override void MergeWith (Style s)

Parameters

s
A System.Web.UI.WebControls.Style object that represents the style settings to combine with the System.Web.UI.WebControls.PanelStyle object.

Remarks

You can use the PanelStyle.MergeWith(Style) method to combine the style settings of the specified System.Web.UI.WebControls.Style object with the current instance of the System.Web.UI.WebControls.PanelStyle class.

The PanelStyle.MergeWith(Style) method copies non-blank elements from the specified System.Web.UI.WebControls.Style object, s, but does not replace any existing style settings in the System.Web.UI.WebControls.PanelStyle object. To replace the style settings in the System.Web.UI.WebControls.PanelStyle object with the style settings in s, use the PanelStyle.CopyFrom(Style) method.

Requirements

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