System.Web.UI.WebControls.MenuItemStyle.MergeWith Method

Combines the style properties of the specified System.Web.UI.WebControls.Style object with those of the current instance of the System.Web.UI.WebControls.MenuItemStyle class.

Syntax

public override void MergeWith (Style s)

Parameters

s
The System.Web.UI.WebControls.Style to combine settings with.

Remarks

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

Note:

This method joins the style properties by setting each property that is not set in the current System.Web.UI.WebControls.MenuItemStyle object with its corresponding value in the specified System.Web.UI.WebControls.Style object. Only properties that have not been set will be updated. If a property in the specified System.Web.UI.WebControls.Style object is not set, the corresponding property in the current System.Web.UI.WebControls.MenuItemStyle object does not change.

Requirements

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