Copies the style properties of the specified System.Web.UI.WebControls.Style object into the current instance of the System.Web.UI.WebControls.MenuItemStyle class.
- s
- The System.Web.UI.WebControls.Style to copy.
Use the MenuItemStyle.CopyFrom(Style) method to duplicate the style properties of the specified System.Web.UI.WebControls.Style object in the System.Web.UI.WebControls.MenuItemStyle object that calls this method.
All properties in the current instance of the System.Web.UI.WebControls.MenuItemStyle class will be replaced by the corresponding properties in the specified System.Web.UI.WebControls.Style object.
To copy style properties without replacing any set values, use the MenuItemStyle.MergeWith(Style) method.