40 references to ItemCount
System.Windows.Forms (40)
winforms\Managed\System\WinForms\Form.cs (1)
1237
if (TopLevel && menu != null && menu.
ItemCount
> 0) {
winforms\Managed\System\WinForms\Menu.cs (31)
102
return null != items &&
ItemCount
> 0;
123
for (int i = 0; i <
ItemCount
; i++) {
221
for (int i = 0; i <
ItemCount
; i++) {
266
for (int i = 0; i <
ItemCount
; i++) {
279
for (int i = 0; i <
ItemCount
; i++) {
297
while (
ItemCount
> 0) {
333
for (int i = 0; i <
ItemCount
; i++) {
356
for (iMin = 0, iLim =
ItemCount
; iMin < iLim;) {
379
for (int nLoop = 0; nLoop <
ItemCount
; nLoop++) {
517
for (i = 0; i < menuSrc.
ItemCount
; i++) {
540
if (j >=
ItemCount
) {
619
return s + ", Items.Count: " +
ItemCount
.ToString(CultureInfo.CurrentCulture);
701
if (index < 0 || index >= owner.
ItemCount
)
748
return owner.
ItemCount
;
826
return Add(owner.
ItemCount
, item);
867
if (index < 0 || index > owner.
ItemCount
) {
871
if (owner.items == null || owner.items.Length == owner.
ItemCount
) {
872
MenuItem[] newItems = new MenuItem[owner.
ItemCount
< 2? 4: owner.
ItemCount
* 2];
873
if (owner.
ItemCount
> 0) System.Array.Copy(owner.items, 0, newItems, 0, owner.
ItemCount
);
876
System.Array.Copy(owner.items, index, owner.items, index + 1, owner.
ItemCount
- index);
1084
if (owner.
ItemCount
> 0) {
1086
for (int i = 0; i < owner.
ItemCount
; i++) {
1106
if (owner.
ItemCount
> 0) {
1107
System.Array.Copy(owner.items, 0, dest, index, owner.
ItemCount
);
1116
return new WindowsFormsUtils.ArraySubsetEnumerator(owner.items, owner.
ItemCount
);
1125
if (index < 0 || index >= owner.
ItemCount
) {
1132
System.Array.Copy(owner.items, index + 1, owner.items, index, owner.
ItemCount
- index);
1133
owner.items[owner.
ItemCount
] = null;
1138
if (owner.
ItemCount
== 0) {
winforms\Managed\System\WinForms\MenuItem.cs (7)
243
if (value == true && (
ItemCount
!= 0 || (Parent != null && (Parent is MainMenu)))) {
334
for (int i = 0; i < menu.
ItemCount
; i++) {
344
if (value < 0 || value >= menu.
ItemCount
) {
372
for (int i=0; i<
ItemCount
; i++) {
1308
for (int i=0; i<
ItemCount
; i++) {
1326
for (int i = 0; i <
ItemCount
; i++) {
1391
if (
ItemCount
> 0)
winforms\Managed\System\WinForms\RichTextBox.cs (1)
4039
int count = menu.
ItemCount
;