System.Web.UI.WebControls.PanelStyle.CopyFrom Method

Duplicates the style properties of the specified System.Web.UI.WebControls.Style object for the current instance of the System.Web.UI.WebControls.PanelStyle class.

Syntax

public override void CopyFrom (Style s)

Parameters

s
A System.Web.UI.WebControls.Style object that represents the style settings to copy.

Remarks

You can use the PanelStyle.CopyFrom(Style) method to duplicate the style settings of the specified System.Web.UI.WebControls.Style object for the current instance of the System.Web.UI.WebControls.PanelStyle class.

The PanelStyle.CopyFrom(Style) method copies non-blank elements from the specified System.Web.UI.WebControls.Style object, s. Any element that is defined in s replaces any element that is defined in the System.Web.UI.WebControls.PanelStyle object. To replace only those style settings left blank in the System.Web.UI.WebControls.PanelStyle object, use the PanelStyle.MergeWith(Style) method.

Requirements

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