示例#1
0
        public OutlineViewModel Insert(int index, string text = "")
        {
            var outline = new OutlineViewModel()
            {
                Parent = this, Text = text
            };

            Children.Insert(index, outline);
            return(outline);
        }
示例#2
0
        public OutlineViewModel Add(string text = "")
        {
            var outline = new OutlineViewModel()
            {
                Parent = this, Text = text
            };

            Children.Add(outline);
            return(outline);
        }