LayoutFarm.UI.UICollection.AddUI C# (CSharp) Méthode

AddUI() public méthode

public AddUI ( UIElement ui ) : void
ui UIElement
Résultat 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

Exemple #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