本文整理汇总了C#中System.Windows.Forms.ToolStripContainer.SuspendLayout方法的典型用法代码示例。如果您正苦于以下问题:C# ToolStripContainer.SuspendLayout方法的具体用法?C# ToolStripContainer.SuspendLayout怎么用?C# ToolStripContainer.SuspendLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ToolStripContainer
的用法示例。
在下文中一共展示了ToolStripContainer.SuspendLayout方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnImportsSatisfied
/// <summary>
/// Called when a part's imports have been satisfied and it is safe to use. (Shell will have a value)
/// </summary>
public void OnImportsSatisfied()
{
_toolStripContainer1 = new ToolStripContainer();
_toolStripContainer1.ContentPanel.SuspendLayout();
_toolStripContainer1.SuspendLayout();
_toolStripContainer1.Dock = DockStyle.Fill;
_toolStripContainer1.Name = "toolStripContainer1";
// place all of the controls that were on the form originally inside of our content panel.
while (Shell.Controls.Count > 0)
{
foreach (Control control in Shell.Controls)
{
this._toolStripContainer1.ContentPanel.Controls.Add(control);
}
}
Shell.Controls.Add(_toolStripContainer1);
_toolStripContainer1.ContentPanel.ResumeLayout(false);
_toolStripContainer1.ResumeLayout(false);
_toolStripContainer1.PerformLayout();
Initialize(_toolStripContainer1);
}
示例2: InitializeComponent
//.........这里部分代码省略.........
this.mnSendGuardOFF = new ToolStripMenuItem();
this.mnSep9 = new ToolStripSeparator();
this.mnAllCheck = new ToolStripMenuItem();
this.mnAllCheckOut = new ToolStripMenuItem();
this.mnView = new ToolStripMenuItem();
this.mnChangeActivePage = new ToolStripMenuItem();
this.mnSep17 = new ToolStripSeparator();
this.mnShowHint = new ToolStripMenuItem();
this.mnSep10 = new ToolStripSeparator();
this.mnZoomIn = new ToolStripMenuItem();
this.mnZoomOut = new ToolStripMenuItem();
this.mnDefaultSize = new ToolStripMenuItem();
this.mnJob = new ToolStripMenuItem();
this.mnSend = new ToolStripMenuItem();
this.mnOption = new ToolStripMenuItem();
this.mnSystem = new ToolStripMenuItem();
this.mnHelp = new ToolStripMenuItem();
this.mnGuidance = new ToolStripMenuItem();
this.JobImageList = new ImageList(this.components);
this.pmnSendGuardOFF = new ContextMenuStrip(this.components);
this.smnSendGuardOFF = new ToolStripMenuItem();
this.OpenFileDlg = new OpenFileDialog();
this.SaveFileDlg = new SaveFileDialog();
this.ResImageList = new ImageList(this.components);
this.tmSetResField = new System.Windows.Forms.Timer(this.components);
this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
ToolStripContainer container = new ToolStripContainer();
container.ContentPanel.SuspendLayout();
container.TopToolStripPanel.SuspendLayout();
container.SuspendLayout();
this.pnlCommon.SuspendLayout();
this.pnlResultCode.SuspendLayout();
this.gbResult.SuspendLayout();
((ISupportInitialize) this.gvResult).BeginInit();
this.pnlGuide.SuspendLayout();
this.gbGuide.SuspendLayout();
this.pnlHeaderInfo.SuspendLayout();
this.gbAttach.SuspendLayout();
this.gbInputInfo.SuspendLayout();
this.PopMenu.SuspendLayout();
this.stPnlUser.BeginInit();
this.stPnlSendGuard.BeginInit();
this.ToolStrip.SuspendLayout();
this.MainMenu.SuspendLayout();
this.pmnSendGuardOFF.SuspendLayout();
base.SuspendLayout();
container.ContentPanel.Controls.Add(this.pnlGuiLayout);
container.ContentPanel.Controls.Add(this.spVertical);
container.ContentPanel.Controls.Add(this.pnlCommon);
container.ContentPanel.Controls.Add(this.statusBar);
container.ContentPanel.Size = new System.Drawing.Size(0x3f8, 0x2ab);
container.Dock = DockStyle.Fill;
container.Location = new Point(0, 0x1a);
container.Name = "TContainer";
container.Size = new System.Drawing.Size(0x3f8, 0x2c4);
container.TabIndex = 2;
container.Text = "toolStripContainer1";
container.TopToolStripPanel.Controls.Add(this.ToolStrip);
this.pnlGuiLayout.BorderStyle = BorderStyle.Fixed3D;
this.pnlGuiLayout.Dock = DockStyle.Fill;
示例3: Attach
public void Attach(IWorkbench workbench)
{
wbForm = (DefaultWorkbench)workbench;
wbForm.SuspendLayout();
wbForm.Controls.Clear();
toolStripContainer = new ToolStripContainer();
toolStripContainer.SuspendLayout();
toolStripContainer.Dock = DockStyle.Fill;
mainMenuContainer = new AutoHideMenuStripContainer(((DefaultWorkbench)wbForm).TopMenu);
mainMenuContainer.Dock = DockStyle.Top;
statusStripContainer = new AutoHideStatusStripContainer((StatusStrip)StatusBarService.Control);
statusStripContainer.Dock = DockStyle.Bottom;
dockPanel = new WeifenLuo.WinFormsUI.DockPanel();
dockPanel.DocumentStyle = DocumentStyles.DockingWindow;
this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
Panel helperPanel = new Panel();
helperPanel.Dock = DockStyle.Fill;
helperPanel.Controls.Add(dockPanel);
toolStripContainer.ContentPanel.Controls.Add(helperPanel);
toolStripContainer.ContentPanel.Controls.Add(mainMenuContainer);
toolStripContainer.ContentPanel.Controls.Add(statusStripContainer);
wbForm.Controls.Add(toolStripContainer);
// dock panel has to be added to the form before LoadLayoutConfiguration is called to fix SD2-463
LoadLayoutConfiguration();
ShowPads();
ShowViewContents();
RedrawAllComponents();
dockPanel.ActiveDocumentChanged += new EventHandler(ActiveMdiChanged);
dockPanel.ActiveContentChanged += new EventHandler(ActiveContentChanged);
ActiveMdiChanged(this, EventArgs.Empty);
toolStripContainer.ResumeLayout(false);
wbForm.ResumeLayout(false);
Properties fullscreenProperties = PropertyService.Get("ICSharpCode.SharpDevelop.Gui.FullscreenOptions", new Properties());
fullscreenProperties.PropertyChanged += TrackFullscreenPropertyChanges;
}
示例4: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent() {
components = new System.ComponentModel.Container();
var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
toolStripContainer1 = new ToolStripContainer();
panel1 = new Panel();
shapeContainer1 = new ShapeContainer();
menuStrip1 = new MenuStrip();
fileToolStripMenuItem = new ToolStripMenuItem();
newToolStripMenuItem = new ToolStripMenuItem();
openToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator = new ToolStripSeparator();
saveToolStripMenuItem = new ToolStripMenuItem();
saveAsToolStripMenuItem = new ToolStripMenuItem();
exportToolStripMenuItem = new ToolStripMenuItem();
exportImageToolStripMenuItem = new ToolStripMenuItem();
comeImmagineVettorialeToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator1 = new ToolStripSeparator();
printToolStripMenuItem = new ToolStripMenuItem();
printPreviewToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator2 = new ToolStripSeparator();
exitToolStripMenuItem = new ToolStripMenuItem();
editToolStripMenuItem = new ToolStripMenuItem();
undoToolStripMenuItem = new ToolStripMenuItem();
redoToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator3 = new ToolStripSeparator();
cutToolStripMenuItem = new ToolStripMenuItem();
copyToolStripMenuItem = new ToolStripMenuItem();
pasteToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator4 = new ToolStripSeparator();
selectAllToolStripMenuItem = new ToolStripMenuItem();
objectsTSMI = new ToolStripMenuItem();
lineKindTSMI = new ToolStripMenuItem();
toolsToolStripMenuItem = new ToolStripMenuItem();
customizeToolStripMenuItem = new ToolStripMenuItem();
optionsToolStripMenuItem = new ToolStripMenuItem();
showTSMI = new ToolStripMenuItem();
hideTSMI = new ToolStripMenuItem();
helpToolStripMenuItem = new ToolStripMenuItem();
contentsToolStripMenuItem = new ToolStripMenuItem();
indexToolStripMenuItem = new ToolStripMenuItem();
searchToolStripMenuItem = new ToolStripMenuItem();
toolStripSeparator5 = new ToolStripSeparator();
aboutToolStripMenuItem = new ToolStripMenuItem();
toolStrip1 = new ToolStrip();
newToolStripButton = new ToolStripButton();
saveToolStripButton = new ToolStripButton();
openToolStripButton = new ToolStripButton();
printToolStripButton = new ToolStripButton();
toolStripSeparator6 = new ToolStripSeparator();
cutToolStripButton = new ToolStripButton();
copyToolStripButton = new ToolStripButton();
pasteToolStripButton = new ToolStripButton();
toolStripSeparator7 = new ToolStripSeparator();
libraryTS = new ToolStripSplitButton();
linkModeTS = new CheckableToolStripSplitButton();
toolStripSeparator8 = new ToolStripSeparator();
fontTS = new CheckableToolStripSplitButton();
altriToolStripMenuItem = new ToolStripMenuItem();
fColorTS = new CheckableToolStripSplitButton();
altriToolStripMenuItem1 = new ToolStripMenuItem();
bColorTS = new CheckableToolStripSplitButton();
altriToolStripMenuItem2 = new ToolStripMenuItem();
borderColorTS = new CheckableToolStripSplitButton();
altriToolStripMenuItem3 = new ToolStripMenuItem();
toolStripSeparator9 = new ToolStripSeparator();
resizeTS = new ToolStripButton();
gridTS = new ToolStripButton();
toolStripSeparator10 = new ToolStripSeparator();
helpToolStripButton = new ToolStripButton();
imageList1 = new ImageList(components);
fColorDialog = new ColorDialog();
fontDialog1 = new FontDialog();
bColorDialog = new ColorDialog();
printDocument1 = new System.Drawing.Printing.PrintDocument();
printDialog1 = new PrintDialog();
printPreviewDialog1 = new PrintPreviewDialog();
openFileDialog1 = new OpenFileDialog();
saveFileDialog1 = new SaveFileDialog();
saveFileDialog2 = new SaveFileDialog();
borderColorDialog = new ColorDialog();
saveFileDialog3 = new SaveFileDialog();
toolStripContainer1.ContentPanel.SuspendLayout();
toolStripContainer1.TopToolStripPanel.SuspendLayout();
toolStripContainer1.SuspendLayout();
panel1.SuspendLayout();
menuStrip1.SuspendLayout();
toolStrip1.SuspendLayout();
SuspendLayout();
//
// toolStripContainer1
//
//
// toolStripContainer1.ContentPanel
//
toolStripContainer1.ContentPanel.Controls.Add(panel1);
toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(804, 529);
//.........这里部分代码省略.........
示例5: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.ToolStrip toolStrip1;
System.Windows.Forms.ToolStripButton _openButton;
System.Windows.Forms.ToolStripMenuItem _fileMenuItem;
System.Windows.Forms.ToolStripMenuItem _openMenuItem;
System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
System.Windows.Forms.ToolStripMenuItem _exitMenuItem;
System.Windows.Forms.ToolStrip toolStrip2;
System.Windows.Forms.ToolStripContainer _toolStripContainer;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
System.Windows.Forms.ToolStripMenuItem _addTreeContextMenuIten;
System.Windows.Forms.ToolStripMenuItem _removeListContextMenuItem;
System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem;
System.Windows.Forms.ToolStripMenuItem _renameListContextMenuItem;
this._saveButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this._generateButton = new System.Windows.Forms.ToolStripButton();
this._saveMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._manageCulturesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._generateMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._addResourceButton = new System.Windows.Forms.ToolStripButton();
this._removeResourceButton = new System.Windows.Forms.ToolStripButton();
this._renameResourceButton = new System.Windows.Forms.ToolStripButton();
this._treeSplitter = new System.Windows.Forms.SplitContainer();
this._paneTree = new Rsdn.LocUtil.Pane();
this._categoryTree = new Rsdn.TreeGrid.TreeGrid();
this._nameCol = new System.Windows.Forms.ColumnHeader();
this._countCol = new System.Windows.Forms.ColumnHeader();
this._treeImages = new System.Windows.Forms.ImageList(this.components);
this._resourceSplitter = new System.Windows.Forms.SplitContainer();
this._paneItems = new Rsdn.LocUtil.Pane();
this._itemList = new System.Windows.Forms.ListView();
this._itemNameCol = new System.Windows.Forms.ColumnHeader();
this._listImages = new System.Windows.Forms.ImageList(this.components);
this._paneProperties = new Rsdn.LocUtil.Pane();
this._propertyGrid = new System.Windows.Forms.PropertyGrid();
this._menuStrip = new System.Windows.Forms.MenuStrip();
this._resourceMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._addResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._removeResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._renameResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._treeContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this._listContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this._openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.BottomToolStripPanel = new System.Windows.Forms.ToolStripPanel();
this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel();
this.RightToolStripPanel = new System.Windows.Forms.ToolStripPanel();
this.LeftToolStripPanel = new System.Windows.Forms.ToolStripPanel();
this.ContentPanel = new System.Windows.Forms.ToolStripContentPanel();
toolStrip1 = new System.Windows.Forms.ToolStrip();
_openButton = new System.Windows.Forms.ToolStripButton();
_fileMenuItem = new System.Windows.Forms.ToolStripMenuItem();
_openMenuItem = new System.Windows.Forms.ToolStripMenuItem();
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
_exitMenuItem = new System.Windows.Forms.ToolStripMenuItem();
toolStrip2 = new System.Windows.Forms.ToolStrip();
_toolStripContainer = new System.Windows.Forms.ToolStripContainer();
_addTreeContextMenuIten = new System.Windows.Forms.ToolStripMenuItem();
_removeListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
_renameListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
toolStrip1.SuspendLayout();
toolStrip2.SuspendLayout();
_toolStripContainer.ContentPanel.SuspendLayout();
_toolStripContainer.TopToolStripPanel.SuspendLayout();
_toolStripContainer.SuspendLayout();
this._treeSplitter.Panel1.SuspendLayout();
this._treeSplitter.Panel2.SuspendLayout();
this._treeSplitter.SuspendLayout();
this._paneTree.SuspendLayout();
this._resourceSplitter.Panel1.SuspendLayout();
this._resourceSplitter.Panel2.SuspendLayout();
this._resourceSplitter.SuspendLayout();
this._paneItems.SuspendLayout();
this._paneProperties.SuspendLayout();
this._menuStrip.SuspendLayout();
this._treeContextMenu.SuspendLayout();
this._listContextMenu.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
_openButton,
this._saveButton,
this.toolStripSeparator3,
this._generateButton});
toolStrip1.Location = new System.Drawing.Point(3, 24);
toolStrip1.Name = "toolStrip1";
toolStrip1.Size = new System.Drawing.Size(87, 25);
toolStrip1.TabIndex = 1;
//.........这里部分代码省略.........