当前位置: 首页>>代码示例>>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;未经允许,请勿转载。