LayoutFarm.WebDom.CssRuleSetGroup.AddRuleSet C# (CSharp) Method

AddRuleSet() public method

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