|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
TabControl.ItemSize-Eigenschaft
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Ausnahme | Bedingung |
|---|---|
| ArgumentOutOfRangeException |
using System.Drawing; using System.Windows.Forms; public class Form1 : Form { private TabControl tabControl1; private TabPage tabPage1; private TabPage tabPage2; public Form1() { this.tabControl1 = new TabControl(); this.tabPage1 = new TabPage(); this.tabPage2 = new TabPage(); // Sizes the tabs of tabControl1. this.tabControl1.ItemSize = new Size(90, 50); // Makes the tab width definable. this.tabControl1.SizeMode = TabSizeMode.Fixed; this.tabControl1.Controls.AddRange(new Control[] { tabPage1, tabPage2}); this.tabControl1.Location = new Point(35, 25); this.tabControl1.Size = new Size(220, 220); this.Size = new Size(300, 300); this.Controls.Add(tabControl1); } static void Main() { Application.Run(new Form1()); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.