/// <summary> /// Inits the standards. /// </summary> private void InitStandards() { this.Cells = new CellCollection(); this.Cells.Removed += CellCollection_Removed; this.Cells.Inserted += CellCollection_Inserted; this.CellSpanCollection = new CellSpanCollection(); this.CellSpanCollection.Inserted += CellSpanCollection_Inserted; this.CellSpanCollection.Removed += CellSpanCollection_Removed; }
/// <summary> /// Inits the standards. /// </summary> private void InitStandards() { this.CellCollection = new CellCollection(); this.CellCollection.Removed += new AODL.Document.Collections.CollectionWithEvents.CollectionChange(CellCollection_Removed); this.CellCollection.Inserted += new AODL.Document.Collections.CollectionWithEvents.CollectionChange(CellCollection_Inserted); //is possible!!!! // if(this.Document is AODL.Document.TextDocuments.TextDocument) // { this.CellSpanCollection = new CellSpanCollection(); this.CellSpanCollection.Inserted += new AODL.Document.Collections.CollectionWithEvents.CollectionChange(CellSpanCollection_Inserted); this.CellSpanCollection.Removed += new AODL.Document.Collections.CollectionWithEvents.CollectionChange(CellSpanCollection_Removed); // } }