當前位置: 首頁>>代碼示例>>C#>>正文


C# TreeView.SuspendLayout方法代碼示例

本文整理匯總了C#中System.Windows.Forms.TreeView.SuspendLayout方法的典型用法代碼示例。如果您正苦於以下問題:C# TreeView.SuspendLayout方法的具體用法?C# TreeView.SuspendLayout怎麽用?C# TreeView.SuspendLayout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Windows.Forms.TreeView的用法示例。


在下文中一共展示了TreeView.SuspendLayout方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Populate

        public static void Populate(TreeView treeview, ParseTree parsetree)
        {
            treeview.Visible = false;
            treeview.SuspendLayout();
            treeview.Nodes.Clear();
            treeview.Tag = parsetree;

            ParseNode start = parsetree.Nodes[0];
            TreeNode node = new TreeNode(start.Text);
            node.Tag = start;
            node.ForeColor = Color.SteelBlue;
            treeview.Nodes.Add(node);

            PopulateNode(node, start);
            treeview.ExpandAll();
            treeview.ResumeLayout();
            treeview.Visible = true;
        }
開發者ID:geocine,項目名稱:tccdotnet,代碼行數:18,代碼來源:ParseTreeViewer.cs

示例2: ActivateTab

        private void ActivateTab(int index)
        {
            this.fileIndex = index;
            if (index == -1)
            {
                return;
            }
            TabPage tp = this.tabControlFile.TabPages[index];
            this.tabControlFile.SelectTab(index);

            TreeView tv = new TreeView();
            tv.SuspendLayout();
            tp.Controls.Add(tv);
            tv.Dock = DockStyle.Fill;
            AddSwfToTreeView(swfs[fileIndex], tv);
            tv.AfterSelect += new TreeViewEventHandler(tv_AfterSelect);
            tv.ResumeLayout();

            RefreshContentPane();
        }
開發者ID:Hamsand,項目名稱:Swf2XNA,代碼行數:20,代碼來源:XamlViewer.cs

示例3: LoadListInternal

			protected override void LoadListInternal(Mediator mediator, SplitterPanel parent)
			{
				parent.FindForm().UseWaitCursor = true;
				parent.SuspendLayout();
				RemovePreviousControl();

				TreeView tv = new TreeView();
				tv.SuspendLayout();
				tv.Dock = DockStyle.Fill;
				AddPossibilities(tv.Nodes, m_possibilityList.PossibilitiesOS);
				tv.AfterSelect += new TreeViewEventHandler(tv_AfterSelect);
				m_currentControl = tv;
				tv.HideSelection = false;
				parent.Controls.Add(tv);
				tv.BringToFront();
				tv.ResumeLayout();
				parent.ResumeLayout();
				parent.FindForm().UseWaitCursor = false;

				base.LoadListInternal(mediator, parent);

				tv.SelectedNode = tv.Nodes[0];
			}
開發者ID:sillsdev,項目名稱:WorldPad,代碼行數:23,代碼來源:ConcorderControl.cs

示例4: ClearTreeview

 internal static void ClearTreeview(TreeView tv)
 {
     try
       {
     tv.SuspendLayout();
     for (var i = 0; i < tv.Nodes.Count; i++)
     {
       var subs = tv.Nodes[i].Nodes;
       for (var j = 0; j < subs.Count; j++)
       {
     subs[j].Text = string.Empty;
       }
     }
     tv.CollapseAll();
       }
       catch (Exception e)
       {
     LogHelper.Dump(e);
       }
       finally
       {
     tv.ResumeLayout();
       }
 }
開發者ID:popovegor,項目名稱:shtrihm,代碼行數:24,代碼來源:FormHelper.cs


注:本文中的System.Windows.Forms.TreeView.SuspendLayout方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。