System.Web.UI.WebControls.TreeNodeStyle.MergeWith Method

Combines the style properties of the specified System.Web.UI.WebControls.Style object with the style properties of the current System.Web.UI.WebControls.TreeNodeStyle object.

Syntax

public override void MergeWith (Style s)

Parameters

s
The System.Web.UI.WebControls.Style that will merge with the current node's settings.

Remarks

Use the TreeNodeStyle.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.TreeNodeStyle object that this method is called from.

Note:

The TreeNodeStyle.MergeWith(Style) method joins the style properties by setting each property that is not set in the current System.Web.UI.WebControls.TreeNodeStyle object with its corresponding value in the specified System.Web.UI.WebControls.Style object. Only properties that have not been set are 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.TreeNodeStyle 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