3 writes to buttonCount
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ToolBar.cs (3)
1180buttonCount++; 1420buttonCount--; 1985owner.buttonCount = 0;
26 references to buttonCount
System.Windows.Forms (26)
winforms\Managed\System\WinForms\ToolBar.cs (26)
379if (IsHandleCreated && buttons != null && buttonCount > 0) { 701if (buttons == null || buttonCount == 0 || !IsHandleCreated) { 777for (int x = 0; x < buttonCount; x++) { 1138for (int x = 0; x < buttonCount; x++) { 1170else if (buttons.Length == buttonCount) { 1171ToolBarButton[] newButtons = new ToolBarButton[buttonCount + 4]; 1172System.Array.Copy(buttons, 0, newButtons, 0, buttonCount); 1176if (index < buttonCount) 1177System.Array.Copy(buttons, index, buttons, index + 1, buttonCount - index); 1191if (index < 0 || ((buttons != null) && (index > buttonCount))) 1213int index = buttonCount; 1363for (int x = 0; x < buttonCount; x++) { 1376int count = buttonCount; 1422if (index < buttonCount) 1423System.Array.Copy(buttons, index + 1, buttons, index, buttonCount - index); 1425buttons[buttonCount] = null; 1506s += ", Buttons.Count: " + buttonCount.ToString(CultureInfo.CurrentCulture); 1507if (buttonCount > 0) 1808if (index < 0 || ((owner.buttons != null) && (index >= owner.buttonCount))) 1816if (index < 0 || ((owner.buttons != null) && index >= owner.buttonCount)) { 1871return owner.buttonCount; 1977for (int x = owner.buttonCount; x > 0; x--) { 2023if (owner.buttonCount > 0) { 2024System.Array.Copy(owner.buttons, 0, dest, index, owner.buttonCount); 2117int count = (owner.buttons == null) ? 0 : owner.buttonCount; 2169return new WindowsFormsUtils.ArraySubsetEnumerator(owner.buttons, owner.buttonCount);