1 instantiation of ToolBarButton
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolBar.cs (1)
1930
ToolBarButton button = new
ToolBarButton
(text);
51 references to ToolBarButton
System.Windows.Forms (51)
winforms\Managed\System\WinForms\ToolBar.cs (44)
74
private
ToolBarButton
[] buttons;
346
/// <para> A collection of <see cref='System.Windows.Forms.
ToolBarButton
'/> controls assigned to the
971
/// <para>Occurs when a <see cref='System.Windows.Forms.
ToolBarButton
'/> on the <see cref='System.Windows.Forms.ToolBar'/> is clicked.</para>
985
/// <para>Occurs when a drop-down style <see cref='System.Windows.Forms.
ToolBarButton
'/> or its down arrow is clicked.</para>
1094
ToolBarButton
[] buttonCopy = new
ToolBarButton
[buttonsCollection.Count];
1098
foreach (
ToolBarButton
b in buttonCopy) {
1163
private void Insert(int index,
ToolBarButton
button) {
1168
buttons = new
ToolBarButton
[4];
1171
ToolBarButton
[] newButtons = new
ToolBarButton
[buttonCount + 4];
1187
private void InsertButton(int index,
ToolBarButton
value) {
1210
private int InternalAddButton(
ToolBarButton
button) {
1224
internal void InternalSetButton(int index,
ToolBarButton
value, bool recreate, bool updateText) {
1534
ToolBarButton
tbb = (
ToolBarButton
)buttons[nmTB.iItem];
1577
ToolBarButton
tbb = (
ToolBarButton
) buttons[commandID];
1599
ToolBarButton
tbb = (
ToolBarButton
) buttons[commandID];
1651
ToolBarButton
tbb = buttons[id];
1780
/// <para>Encapsulates a collection of <see cref='System.Windows.Forms.
ToolBarButton
'/> controls for use by the
1806
public virtual
ToolBarButton
this[int index] {
1834
if (value is
ToolBarButton
) {
1835
this[index] = (
ToolBarButton
)value;
1846
public virtual
ToolBarButton
this[string key] {
1914
public int Add(
ToolBarButton
button) {
1930
ToolBarButton
button = new ToolBarButton(text);
1937
if (button is
ToolBarButton
) {
1938
return Add((
ToolBarButton
)button);
1949
public void AddRange(
ToolBarButton
[] buttons) {
1955
foreach(
ToolBarButton
button in buttons) {
1995
public bool Contains(
ToolBarButton
button) {
2002
if (button is
ToolBarButton
) {
2003
return Contains((
ToolBarButton
)button);
2032
public int IndexOf(
ToolBarButton
button) {
2044
if (button is
ToolBarButton
) {
2045
return IndexOf((
ToolBarButton
)button);
2087
public void Insert(int index,
ToolBarButton
button) {
2094
if (button is
ToolBarButton
) {
2095
Insert(index, (
ToolBarButton
)button);
2148
public void Remove(
ToolBarButton
button) {
2158
if (button is
ToolBarButton
) {
2159
Remove((
ToolBarButton
)button);
winforms\Managed\System\WinForms\ToolBarButton.cs (3)
80
/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.
ToolBarButton
'/> class.</para>
98
private
ToolBarButton
owner;
102
public ToolBarButtonImageIndexer(
ToolBarButton
button) {
winforms\Managed\System\WinForms\ToolBarButtonClickEvent.cs (4)
27
private
ToolBarButton
button;
36
public ToolBarButtonClickEventArgs(
ToolBarButton
button) {
43
/// Specifies the <see cref='System.Windows.Forms.
ToolBarButton
'/>
47
public
ToolBarButton
Button {