本文整理汇总了C#中MonoDevelop.Ide.Gui.Components.PadTreeView.ExpandAll方法的典型用法代码示例。如果您正苦于以下问题:C# MonoDevelop.Ide.Gui.Components.PadTreeView.ExpandAll方法的具体用法?C# MonoDevelop.Ide.Gui.Components.PadTreeView.ExpandAll怎么用?C# MonoDevelop.Ide.Gui.Components.PadTreeView.ExpandAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.Ide.Gui.Components.PadTreeView
的用法示例。
在下文中一共展示了MonoDevelop.Ide.Gui.Components.PadTreeView.ExpandAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Exception
Widget IOutlinedDocument.GetOutlineWidget ()
{
if (outlineView != null)
return outlineView;
if (outlineStore == null)
throw new Exception ("The treestore should be built, before initializing the TreeView of the DocumentOutline");
outlineView = new MonoDevelop.Ide.Gui.Components.PadTreeView (outlineStore);
System.Reflection.PropertyInfo prop = typeof(Gtk.TreeView).GetProperty ("EnableTreeLines");
if (prop != null)
prop.SetValue (outlineView, true, null);
outlineView.TextRenderer.Xpad = 0;
outlineView.TextRenderer.Ypad = 0;
outlineView.ExpandAll ();
outlineView.AppendColumn ("Node", outlineView.TextRenderer, new Gtk.TreeCellDataFunc (OutlineTreeDataFunc));
outlineView.HeadersVisible = false;
outlineView.Selection.Changed += delegate {
Gtk.TreeIter iter = Gtk.TreeIter.Zero;
outlineView.Selection.GetSelected (out iter);
DocumentOutlineSelectionChanged (outlineStore.GetValue (iter, 0) as XNode);
};
var sw = new MonoDevelop.Components.CompactScrolledWindow ();
sw.Add (outlineView);
sw.ShowAll ();
return sw;
}