21 writes to ItemSize
System.Windows.Forms (1)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1603ItemSize = s_defaultItemSize;
System.Windows.Forms.Tests (20)
System\Windows\Forms\TabControl.ControlCollectionTests.cs (2)
165ItemSize = itemSize, 466ItemSize = itemSize,
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (4)
153ItemSize = itemSize, 460ItemSize = itemSize, 2090ItemSize = itemSize, 2409ItemSize = itemSize,
System\Windows\Forms\TabControlTests.cs (14)
1481ItemSize = value 1487control.ItemSize = value; 1512control.ItemSize = value; 1520control.ItemSize = value; 1533ItemSize = new Size(16, 16) 1543control.ItemSize = Size.Empty; 1561control.ItemSize = new Size(1, 0); 1565control.ItemSize = new Size(0, 1); 1569control.ItemSize = new Size(1, 2); 1585control.ItemSize = new Size(1, 0); 1589control.ItemSize = new Size(0, 1); 1593control.ItemSize = new Size(1, 2); 1606Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemSize = new Size(-1, 1)); 1613Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemSize = new Size(1, -1));
22 references to ItemSize
System.Windows.Forms (1)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
522throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(ItemSize), value));
System.Windows.Forms.Tests (21)
System\Windows\Forms\TabControlTests.cs (21)
75Assert.Equal(Size.Empty, control.ItemSize); 1445Size size = control.ItemSize; 1448Assert.Equal(size, control.ItemSize); 1461Size size = control.ItemSize; 1464Assert.Equal(size, control.ItemSize); 1483Assert.Equal(value, control.ItemSize); 1488Assert.Equal(value, control.ItemSize); 1513Assert.Equal(value, control.ItemSize); 1521Assert.Equal(value, control.ItemSize); 1544Size size = control.ItemSize; 1547Assert.Equal(size, control.ItemSize); 1557PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)]; 1562Assert.Equal(new Size(1, 0), control.ItemSize); 1566Assert.Equal(new Size(0, 1), control.ItemSize); 1570Assert.Equal(new Size(1, 2), control.ItemSize); 1574Assert.Equal(Size.Empty, control.ItemSize); 1581PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabControl))[nameof(TabControl.ItemSize)]; 1586Assert.Equal(new Size(1, 0), control.ItemSize); 1590Assert.Equal(new Size(0, 1), control.ItemSize); 1594Assert.Equal(new Size(1, 2), control.ItemSize); 1598Assert.Equal(Size.Empty, control.ItemSize);