WebPartMenuStyle.MergeWith Method (Style)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Copies nonblank style elements to the WebPartMenuStyle instance, but does not overwrite existing style elements.

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

public override void MergeWith(
	Style s
)

Parameters

s
Type: System.Web.UI.WebControls.Style

A Style that contains style information to copy.

The MergeWith method is similar to the CopyFrom method in that it copies style elements from a specified Style object, but it differs in that it does not overwrite any existing style elements in the WebPartMenuStyle instance.

System_CAPS_noteNote

One reason this method overrides its base method is to customize the process of assigning a value to the ShadowColor property.

.NET Framework
Available since 2.0
Return to top
Show: