Clone() public method

public Clone ( object newOwner ) : CssPropertyAssignmentCollection
newOwner object
return CssPropertyAssignmentCollection
示例#1
0
 public void AddRuleSet(CssPropertyAssignmentCollection otherAssignments)
 {
     //assignment in this ruleset
     //if (dbugId == 170)
     //{
     //}
     if (_assignments == null)
     {
         //share
         _assignments = otherAssignments;
     }
     else if (_assignments != otherAssignments)
     {
         //then copy each css property assignment
         //from other Assignment and add to this assignment
         if (_assignments.OriginalOwner != this)
         {
             _assignments = _assignments.Clone(this);
         }
         _assignments.MergeProperties(otherAssignments);
     }
     else
     {
     }
 }