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