Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
 /// <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));
 }
Exemple #8
0
 /// <summary>
 /// Removes the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 public void RemoveOnlyHere(AODL.Document.Content.IContent value)
 {
     base.Remove(value);
 }