1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
781
owner
= item;
36 references to owner
System.Windows.Forms (36)
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (36)
808
if (AccessibilityImprovements.Level3 &&
owner
.Parent != null && (
owner
.Parent.IsInDesignMode ||
owner
.Parent.IsTopInDesignMode)) {
812
if (
owner
!= null && AccessibilityImprovements.Level1 ) {
821
if (patternId == NativeMethods.UIA_ExpandCollapsePatternId &&
owner
.HasDropDownItems) {
830
if (AccessibilityImprovements.Level3 && propertyID == NativeMethods.UIA_IsOffscreenPropertyId &&
owner
!= null &&
owner
.Owner is ToolStripDropDown) {
831
return !((ToolStripDropDown)
owner
.Owner).Visible;
842
if (
owner
!= null &&
owner
.DropDown != null &&
owner
.DropDown.Visible) {
843
owner
.DropDown.Close();
849
return
owner
.DropDown.Visible ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed;
854
if ((
owner
== null) || !
owner
.HasDropDownItems) {
857
return
owner
.DropDown.AccessibilityObject.GetChild(index);
861
if ((
owner
== null) || !
owner
.HasDropDownItems) {
872
if (
owner
.DropDown.LayoutRequired) {
873
LayoutTransaction.DoLayout(
owner
.DropDown,
owner
.DropDown, PropertyNames.Items);
875
return
owner
.DropDown.AccessibilityObject.GetChildCount();
880
if ((
owner
== null) || (
owner
.DropDownItems == null)) {
884
for (int i = 0; i <
owner
.DropDownItems.Count; i++) {
885
if (
owner
.DropDownItems[i].Available && child.Owner ==
owner
.DropDownItems[i]) {
898
if ((
owner
== null) || (
owner
.DropDownItems == null)) {
903
for (int i = 0; i <
owner
.DropDownItems.Count; i++) {
904
if (
owner
.DropDownItems[i].Available) {
913
var toolStripAccessibleObject =
owner
.DropDown.AccessibilityObject as ToolStrip.ToolStripAccessibleObject;
922
if (
owner
== null ||
owner
.DropDown == null) {
943
ToolStripDropDown dropDown =
owner
.Owner as ToolStripDropDown;
948
int index = dropDown.Items.IndexOf(
owner
);