3 writes to buttons
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ToolBar.cs (3)
1168
buttons
= new ToolBarButton[4];
1173
buttons
= newButtons;
1984
owner.
buttons
= null;
44 references to buttons
System.Windows.Forms (44)
winforms\Managed\System\WinForms\ToolBar.cs (44)
379
if (IsHandleCreated &&
buttons
!= null && buttonCount > 0) {
701
if (
buttons
== null || buttonCount == 0 || !IsHandleCreated) {
710
for (firstVisible = 0; firstVisible <
buttons
.Length; firstVisible++) {
711
if (
buttons
[firstVisible] != null &&
buttons
[firstVisible].Visible) {
715
if (firstVisible ==
buttons
.Length) {
771
if (!IsHandleCreated ||
buttons
== null)
1132
if (
buttons
!= null && buttonSize.IsEmpty && IsHandleCreated) {
1142
tbbi.cx =
buttons
[x].Width;
1167
if (
buttons
== null) {
1170
else if (
buttons
.Length == buttonCount) {
1172
System.Array.Copy(
buttons
, 0, newButtons, 0, buttonCount);
1177
System.Array.Copy(
buttons
, index,
buttons
, index + 1, buttonCount - index);
1179
buttons
[index] = button;
1191
if (index < 0 || ((
buttons
!= null) && (index > buttonCount)))
1230
buttons
[index].parent = null;
1231
buttons
[index].stringIndex = (IntPtr)(-1);
1232
buttons
[index] = value;
1233
buttons
[index].parent = this;
1357
if (
buttons
!= null) {
1364
if (
buttons
[x].Text.Length > 0) {
1365
string addString =
buttons
[x].Text + '\0'.ToString();
1366
buttons
[x].stringIndex = SendMessage(NativeMethods.TB_ADDSTRING, 0, addString);
1369
buttons
[x].stringIndex = (IntPtr)(-1);
1381
NativeMethods.TBBUTTON tbbutton =
buttons
[x].GetTBBUTTON(x);
1383
buttons
[x].parent = this;
1418
buttons
[index].parent = null;
1419
buttons
[index].stringIndex = (IntPtr)(-1);
1423
System.Array.Copy(
buttons
, index + 1,
buttons
, index, buttonCount - index);
1425
buttons
[buttonCount] = null;
1508
s += ", Buttons[0]: " +
buttons
[0].ToString();
1534
ToolBarButton tbb = (ToolBarButton)
buttons
[nmTB.iItem];
1577
ToolBarButton tbb = (ToolBarButton)
buttons
[commandID];
1599
ToolBarButton tbb = (ToolBarButton)
buttons
[commandID];
1651
ToolBarButton tbb =
buttons
[id];
1808
if (index < 0 || ((owner.
buttons
!= null) && (index >= owner.buttonCount)))
1810
return owner.
buttons
[index];
1816
if (index < 0 || ((owner.
buttons
!= null) && index >= owner.buttonCount)) {
1973
if (owner.
buttons
== null) {
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);