Beispiel #1
0
 public void AddKeywords(DrawingKeywordCollection drawingKeywords)
 {
     if (drawingKeywords != null && drawingKeywords.Count > 0)
     {
         foreach (DrawingKeyword drawingKeyword in drawingKeywords)
         {
             this.AddKeyword(drawingKeyword);
         }
     }
     else
     {
         return;
     }
     return;
 }
Beispiel #2
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public DrawingKeywordCollection Copy()
        {
            DrawingKeywordCollection drawingKeywords = new DrawingKeywordCollection();

            if (this.Count <= 0)
            {
                return(drawingKeywords);
            }
            else
            {
                foreach (DrawingKeyword drawingKeyword in this)
                {
                    drawingKeywords.Add(drawingKeyword.Copy());
                }
                return(drawingKeywords);
            }
        }