本文整理汇总了C#中System.Windows.Forms.Form.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.Form.ResumeLayout方法的具体用法?C# System.Windows.Forms.Form.ResumeLayout怎么用?C# System.Windows.Forms.Form.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Form
的用法示例。
在下文中一共展示了System.Windows.Forms.Form.ResumeLayout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
#if DEBUG
Microsoft.Msagl.GraphViewerGdi.DisplayGeometryGraph.SetShowFunctions();
#endif
//create a form
System.Windows.Forms.Form form = new System.Windows.Forms.Form();
//create a viewer object
Microsoft.Msagl.GraphViewerGdi.GViewer viewer = new Microsoft.Msagl.GraphViewerGdi.GViewer();
//associate the viewer with the form
form.SuspendLayout();
viewer.Dock = System.Windows.Forms.DockStyle.Fill;
form.Controls.Add(viewer);
form.ResumeLayout();
//create a graph object
#if GraphModel
Graph graph = DgmlParser.DgmlParser.Parse("fullstring.dgml");
SugiyamaLayoutSettings ss = graph.LayoutAlgorithmSettings as SugiyamaLayoutSettings;
// uncomment this line to see the wide graph
// ss.MaxAspectRatioEccentricity = 100;
// uncommment this line to us Mds
// ss.FallbackLayoutSettings = new MdsLayoutSettings {AdjustScale = true};
// or uncomment the following line to use the default layering layout with vertical layer
// graph.Attr.LayerDirection = LayerDirection.LR;
viewer.Graph = graph;
form.ShowDialog();
#endif
}