1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStrip.cs (1)
4829
this.
owner
= owner;
67 references to owner
System.Windows.Forms (67)
winforms\Managed\System\WinForms\ToolStrip.cs (67)
4838
Point clientHit =
owner
.PointToClient(new Point(x,y));
4839
ToolStripItem item =
owner
.GetItemAt(clientHit);
4853
if ((
owner
== null) || (
owner
.Items == null))
4856
if (index == 0 &&
owner
.Grip.Visible) {
4857
return
owner
.Grip.AccessibilityObject;
4859
else if (
owner
.Grip.Visible && index > 0) {
4863
if (index <
owner
.Items.Count) {
4868
for (int i = 0; i <
owner
.Items.Count; ++i)
4870
if (
owner
.Items[i].Available &&
owner
.Items[i].Alignment == ToolStripItemAlignment.Left) {
4872
item =
owner
.Items[i];
4881
for (int i = 0; i <
owner
.Items.Count; ++i) {
4882
if (
owner
.Items[i].Available &&
owner
.Items[i].Alignment == ToolStripItemAlignment.Right) {
4884
item =
owner
.Items[i];
4903
if (
owner
.CanOverflow &&
owner
.OverflowButton.Visible && index ==
owner
.Items.Count) {
4904
return
owner
.OverflowButton.AccessibilityObject;
4915
if ((
owner
== null) || (
owner
.Items == null))
4919
for (int i = 0; i <
owner
.Items.Count; i++) {
4920
if (
owner
.Items[i].Available) {
4924
if (
owner
.Grip.Visible) {
4927
if (
owner
.CanOverflow &&
owner
.OverflowButton.Visible) {
4935
var items = getOverflowItem ?
owner
.OverflowItems :
owner
.DisplayedItems;
4938
if (!getOverflowItem &&
owner
.CanOverflow &&
owner
.OverflowButton.Visible && fragmentIndex == childFragmentCount - 1) {
4939
return
owner
.OverflowButton.AccessibilityObject;
4955
var item =
owner
.Items[index];
4970
if (
owner
== null ||
owner
.OverflowItems == null) {
4974
return
owner
.OverflowItems.Count;
4978
if (
owner
== null ||
owner
.DisplayedItems == null) {
4982
return
owner
.DisplayedItems.Count;
4986
if (
owner
== null ||
owner
.Items == null) {
4990
if (child.Owner ==
owner
.Grip) {
4997
if (
owner
is ToolStripOverflow) {
4999
items =
owner
.DisplayedItems;
5002
if (
owner
.CanOverflow &&
owner
.OverflowButton.Visible && child.Owner ==
owner
.OverflowButton) {
5007
items = (placement == ToolStripItemPlacement.Main) ?
owner
.DisplayedItems :
owner
.OverflowItems;
5030
if ((
owner
== null) || (
owner
.Items == null)) {
5035
if (
owner
.Grip.Visible) {
5036
if (child.Owner ==
owner
.Grip) {
5042
if (
owner
.CanOverflow &&
owner
.OverflowButton.Visible && child.Owner ==
owner
.OverflowButton) {
5043
return
owner
.Items.Count + index;
5047
for (int i = 0; i <
owner
.Items.Count; ++i) {
5048
if (
owner
.Items[i].Available &&
owner
.Items[i].Alignment == ToolStripItemAlignment.Left) {
5049
if (child.Owner ==
owner
.Items[i]) {
5057
for (int i = 0; i <
owner
.Items.Count; ++i) {
5058
if (
owner
.Items[i].Available &&
owner
.Items[i].Alignment == ToolStripItemAlignment.Right) {
5059
if (child.Owner ==
owner
.Items[i]) {
5119
return AccessibilityImprovements.Level3 && !
owner
.IsInDesignMode && !
owner
.IsTopInDesignMode;