WebPartMenuStyle.CopyFrom(Style) Method

Definition

Copies nonblank style elements to the WebPartMenuStyle object, overwriting any existing style elements in the process.

C#
public override void CopyFrom(System.Web.UI.WebControls.Style s);

Parameters

s
Style

A Style that contains style information to copy.

Remarks

The CopyFrom method copies style information from the specified Style object, and if there are any existing style elements in the WebPartMenuStyle instance, it overwrites them.

Note

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also