コード例 #1
0
ファイル: Bookmarks.cs プロジェクト: mwilian/demos
        /// <summary>
        /// Returns a deep copy of this object.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            TBookmarkList Result = new TBookmarkList();

            for (int i = 0; i < Count; i++)
            {
                Result.Add((TBookmark)this[i].Clone());
            }

            return(Result);
        }
コード例 #2
0
ファイル: Bookmarks.cs プロジェクト: mwilian/demos
 /// <summary>
 /// Adds a new child of this bookmark on the outline.
 /// </summary>
 /// <param name="child">Child bookmark to add.</param>
 public void AddChild(TBookmark child)
 {
     FChildren.Add(child);
 }