MenuItemStyle::CopyFrom Method (Style^)
.NET Framework (current version)
Copies the style properties of the specified Style object into the current instance of the MenuItemStyle class.
Assembly: System.Web (in System.Web.dll)
Use the CopyFrom method to duplicate the style properties of the specified Style object in the MenuItemStyle object that calls this method.
Caution |
|---|
All properties in the current instance of the MenuItemStyle class will be replaced by the corresponding properties in the specified Style object. |
To copy style properties without replacing any set values, use the MergeWith method.
The following code example demonstrates how to use the CopyFrom method to copy the style settings of another MenuItemStyle object.
.NET Framework
Available since 2.0
Available since 2.0
Show:
