Implemented interface member:
method
GetPreferredSize
System.Windows.Forms.Layout.IArrangedElement.GetPreferredSize(System.Drawing.Size)
6 overrides of GetPreferredSize
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
159public override Size GetPreferredSize(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
473public override Size GetPreferredSize(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
71public override Size GetPreferredSize(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
257public override Size GetPreferredSize(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
347public override Size GetPreferredSize(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
177public override Size GetPreferredSize(Size constrainingSize)
16 references to GetPreferredSize
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2396return item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
161Size prefSize = base.GetPreferredSize(constrainingSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
477: base.GetPreferredSize(constrainingSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (5)
86Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size; 136Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size; 270itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size; 412itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size; 584Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (2)
181return base.GetPreferredSize(constrainingSize) + new Size(4, 4); 185return base.GetPreferredSize(constrainingSize);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ToolStripItemTests.cs (6)
10310Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize)); 10313Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize)); 10325Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize)); 10328Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize)); 10340Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize)); 10343Assert.Equal(new Size(4, 4), item.GetPreferredSize(proposedSize));