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