System.Web.UI.WebControls.SubMenuStyle.CopyFrom Method

Copies the style properties of the specified System.Web.UI.WebControls.Style object into the current instance of the System.Web.UI.WebControls.SubMenuStyle class.

Syntax

public override void CopyFrom (Style s)

Parameters

s
The System.Web.UI.WebControls.Style object to copy.

Remarks

Use the SubMenuStyle.CopyFrom(Style) method to duplicate the style properties of the specified System.Web.UI.WebControls.Style object in the System.Web.UI.WebControls.SubMenuStyle object that calls this method.

Note:

All properties in the current instance of the System.Web.UI.WebControls.SubMenuStyle class will be replaced by the corresponding properties in the specified System.Web.UI.WebControls.Style object.

To copy style properties without replacing any set values, use the SubMenuStyle.MergeWith(Style) method.

Requirements

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