LayoutFarm.UI.UICollection.AddUI C# (CSharp) 메소드

AddUI() 공개 메소드

public AddUI ( UIElement ui ) : void
ui UIElement
리턴 void
        public void AddUI(UIElement ui)
        {
#if DEBUG
            if (this.owner == ui)
                throw new Exception("cyclic!");
#endif
            ui.ParentUI = this.owner;
            uiList.Add(ui);
        }
        public int Count

Usage Example

예제 #1
0
 SimpleBox panel; //panel 
 public TreeView(int width, int height)
     : base(width, height)
 {
     //panel for listview items
     this.panel = new SimpleBox(width, height);
     panel.ContentLayoutKind = BoxContentLayoutKind.VerticalStack;
     panel.BackColor = Color.LightGray;
     uiList = new UICollection(this);
     uiList.AddUI(panel);
 }
All Usage Examples Of LayoutFarm.UI.UICollection::AddUI