public virtual void AddSubcomponent(string name, XObject sub) { if (this.Subcomponents == null) { this.Subcomponents = new XObjectCollection(); } this.Subcomponents.Add(sub); }
internal void CreateSubcomponents() { if (this.subcomponents == null) { this.subcomponents = new XObjectCollection() { Parent = this } } ; }