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