MergeProperties() public method

public MergeProperties ( CssPropertyAssignmentCollection sourceCollection ) : void
sourceCollection CssPropertyAssignmentCollection
return void
Exemplo n.º 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
     {
     }
 }