/// <summary> /// Removes the specified value. /// </summary> /// <param name="value">The value.</param> public new void Remove(AODL.Document.Content.IContent value) { if (value is Field) { Field f = value as Field; if (f != null) { if (f.Document is TextDocument) { TextDocument td = f.Document as TextDocument; f.ContentCollection = null; td.Fields.Remove(f); } } } base.Remove(value); }
/// <summary> /// Inserts the specified index. /// </summary> /// <param name="index">The index.</param> /// <param name="value">The value.</param> public new void Insert(int index, AODL.Document.Content.IContent value) { if (value is Field) { Field f = value as Field; if (f != null) { if (f.Document is TextDocument) { TextDocument td = f.Document as TextDocument; f.ContentCollection = this; td.Fields.Add(f); } } } base.Insert(index, value); }
/// <summary> /// Adds the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public override CollectionWithEvents <IContent> Add(AODL.Document.Content.IContent value) { if (value is Field) { Field f = value as Field; if (f != null) { if (f.Document is TextDocument) { TextDocument td = f.Document as TextDocument; f.ContentCollection = this; td.Fields.Add(f); } } } base.Add(value); return(this); }
/// <summary> /// Determines whether [contains] [the specified value]. /// </summary> /// <param name="value">The value.</param> /// <returns> /// <c>true</c> if [contains] [the specified value]; otherwise, <c>false</c>. /// </returns> public bool Contains(AODL.Document.Content.IContent value) { return(base.List.Contains(value as object)); }
/// <summary> /// Inserts the specified index. /// </summary> /// <param name="index">The index.</param> /// <param name="value">The value.</param> public void Insert(int index, AODL.Document.Content.IContent value) { base.List.Insert(index, value as object); }
/// <summary> /// Removes the specified value. /// </summary> /// <param name="value">The value.</param> public void Remove(AODL.Document.Content.IContent value) { base.List.Remove(value as object); }
/// <summary> /// Adds the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public int Add(AODL.Document.Content.IContent value) { return(base.List.Add(value as object)); }
/// <summary> /// Removes the specified value. /// </summary> /// <param name="value">The value.</param> public void RemoveOnlyHere(AODL.Document.Content.IContent value) { base.Remove(value); }