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.
- s
- A System.Web.UI.WebControls.Style object that represents the style settings to copy.
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.