当前位置: 首页>>代码示例>>C#>>正文


C# CommandBar.SuspendLayout方法代码示例

本文整理汇总了C#中CommandBar.SuspendLayout方法的典型用法代码示例。如果您正苦于以下问题:C# CommandBar.SuspendLayout方法的具体用法?C# CommandBar.SuspendLayout怎么用?C# CommandBar.SuspendLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommandBar的用法示例。


在下文中一共展示了CommandBar.SuspendLayout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeUserInterface

 private void InitializeUserInterface()
 {
     //NOTE: ��ʼ�����ߴ���
     this._workspaceTool = new WorkspaceToolWindow(base.ServiceProvider);
     this._openDocsTool = new OpenDocumentsToolWindow(base.ServiceProvider);
     this._toolboxTool = new ToolboxToolWindow(base.ServiceProvider);
     this._propBrowserTool = new PropertyBrowserToolWindow(base.ServiceProvider);
     this._dataTool = new DataToolWindow(base.ServiceProvider);
     this._classViewTool = new ClassViewToolWindow(base.ServiceProvider);
     this._communityTool = new CommunityToolWindow(base.ServiceProvider);
     ImageList list = new ImageList();
     CommandBar commandBar = new CommandBar();
     MxToolBar mainToolBar = new MxToolBar();
     MxToolBar helpToolBar = new MxToolBar();
     MxToolBar documentToolBar = new MxToolBar();
     MxStatusBar statusBar = new MxStatusBar();
     this.leftContainer = new DockingContainer();
     DockingContainer rightContainer = new DockingContainer();
     Splitter splitter = new Splitter();
     Splitter splitter2 = new Splitter();
     MainMenu mainMenu = new MainMenu();
     MxStatusBarPanel panel = new MxStatusBarPanel();
     ProgressStatusBarPanel panel2 = new ProgressStatusBarPanel();
     EditorStatusBarPanel panel3 = new EditorStatusBarPanel();
     MxStatusBarPanel panel4 = new MxStatusBarPanel();
     MxStatusBarPanel panel5 = new MxStatusBarPanel();
     commandBar.SuspendLayout();
     base.SuspendLayout();
     ((ISupportInitialize) statusBar).BeginInit();
     list.ImageSize = new Size(0x10, 0x10);
     list.TransparentColor = Color.Lime;
     list.ColorDepth = ColorDepth.Depth32Bit;
     list.Images.AddStrip(new Bitmap(typeof(ApplicationWindow), "Commands.bmp"));
     mainToolBar.Appearance = ToolBarAppearance.Flat;
     mainToolBar.Divider = false;
     mainToolBar.DropDownArrows = true;
     mainToolBar.ShowToolTips = true;
     mainToolBar.TabIndex = 1;
     mainToolBar.TabStop = false;
     mainToolBar.TextAlign = ToolBarTextAlign.Right;
     mainToolBar.Wrappable = false;
     mainToolBar.ImageList = list;
     helpToolBar.Appearance = ToolBarAppearance.Flat;
     helpToolBar.Divider = false;
     helpToolBar.DropDownArrows = true;
     helpToolBar.ShowToolTips = true;
     helpToolBar.TabIndex = 1;
     helpToolBar.TabStop = false;
     helpToolBar.TextAlign = ToolBarTextAlign.Right;
     helpToolBar.Wrappable = false;
     helpToolBar.ImageList = list;
     Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);
     helpToolBar.Width = (((int) graphics.MeasureString(new string('_', 30), this.Font).Width) + 0x18) + 6;
     graphics.Dispose();
     documentToolBar.Appearance = ToolBarAppearance.Flat;
     documentToolBar.Divider = false;
     documentToolBar.DropDownArrows = true;
     documentToolBar.ShowToolTips = true;
     documentToolBar.TabIndex = 0;
     documentToolBar.TabStop = false;
     documentToolBar.TextAlign = ToolBarTextAlign.Right;
     documentToolBar.Wrappable = false;
     documentToolBar.ImageList = list;
     commandBar.Dock = DockStyle.Top;
     commandBar.MenuBar = mainMenu;
     commandBar.TabIndex = 1;
     commandBar.TabStop = false;
     commandBar.Controls.Add(mainToolBar);
     commandBar.Controls.Add(helpToolBar);
     commandBar.Controls.Add(documentToolBar);
     commandBar.TopRightToolBar = helpToolBar;
     this.leftContainer.AssociatedSplitter = splitter;
     this.leftContainer.Dock = DockStyle.Left;
     this.leftContainer.Size = new Size(0x7d, 0x1fb);
     this.leftContainer.TabIndex = 3;
     this.leftContainer.TabStop = false;
     splitter.Size = new Size(4, 4);
     splitter.TabIndex = 4;
     splitter.TabStop = false;
     rightContainer.AssociatedSplitter = splitter2;
     rightContainer.Dock = DockStyle.Right;
     rightContainer.Size = new Size(230, 0x1fb);
     rightContainer.TabIndex = 5;
     rightContainer.TabStop = false;
     splitter2.Dock = DockStyle.Right;
     splitter2.Size = new Size(4, 4);
     splitter2.TabIndex = 6;
     splitter2.TabStop = false;
     panel.AutoSize = StatusBarPanelAutoSize.Spring;
     panel2.MinWidth = 0x80;
     panel2.Width = 0x80;
     panel3.Alignment = HorizontalAlignment.Center;
     panel3.Width = 0x80;
     panel3.MinWidth = 0x80;
     panel4.Alignment = HorizontalAlignment.Center;
     panel4.Width = 0x23;
     panel5.Alignment = HorizontalAlignment.Center;
     panel5.Width = 0x23;
     statusBar.Size = new Size(0x318, 20);
     statusBar.TabIndex = 2;
//.........这里部分代码省略.........
开发者ID:ikvm,项目名称:webmatrix,代码行数:101,代码来源:ApplicationWindow.cs


注:本文中的CommandBar.SuspendLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。