108 references to Owner
System.Windows.Forms (108)
winforms\Managed\System\WinForms\ButtonBase.cs (2)
1346((ButtonBase)Owner).OnClick(EventArgs.Empty); 1354ButtonBase owner = (ButtonBase) Owner;
winforms\Managed\System\WinForms\CheckBox.cs (5)
731string defaultAction = Owner.AccessibleDefaultActionDescription; 736if (((CheckBox)Owner).Checked) { 751AccessibleRole role = Owner.AccessibleRole; 765switch (((CheckBox)Owner).CheckState) { 782CheckBox cb = this.Owner as CheckBox;
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
1572return (CheckedListBox)Owner; 1691return(CheckedListBox)parent.Owner;
winforms\Managed\System\WinForms\Control.cs (14)
19674QueryAccessibilityHelpEventHandler handler = (QueryAccessibilityHelpEventHandler)Owner.Events[EventQueryAccessibilityHelp]; 19678handler(Owner, args); 19782Control parent = Owner.ParentInternal; 19795for (Control previous = container.GetNextControl(Owner, false); 19838QueryAccessibilityHelpEventHandler handler = (QueryAccessibilityHelpEventHandler)Owner.Events[EventQueryAccessibilityHelp]; 19842handler(Owner, args); 19912if (!(this.Owner is IAutomationLiveRegion)) { 19920if (AccessibilityImprovements.Level3 && this.Owner is IAutomationLiveRegion) { 19928if (AccessibilityImprovements.Level3 && propertyID == NativeMethods.UIA_LiveSettingPropertyId && Owner is IAutomationLiveRegion) { 19929return ((IAutomationLiveRegion)Owner).LiveSetting; 19932if (Owner.SupportsUiaProviders) { 19935return Owner.CanSelect; 19967if (Owner != null) { 19968return "ControlAccessibleObject: Owner = " + Owner.ToString();
winforms\Managed\System\WinForms\DataGrid.cs (8)
9050return (DataGrid)Owner; 9056return ((DataGrid)Owner).myGridTable.GridColumnStyles.Count; 9062return ((DataGrid)Owner).dataGridRows.Length; 9071string name = Owner.AccessibleName; 9084Owner.AccessibleName = value; 9090AccessibleRole role = Owner.AccessibleRole; 9098DataGrid dataGrid = (DataGrid)Owner; 9155int n = 1 + ColumnCountPrivate + ((DataGrid)Owner).DataGridRowsLength;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
40string name = this.Owner.AccessibleName;
winforms\Managed\System\WinForms\DataGridViewComboBoxEditingControl.cs (2)
224var owner = Owner as IDataGridViewEditingControl; 240return (Owner as IDataGridViewEditingControl)?.EditingControlDataGridView?.AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewEditingControl.cs (3)
99return (Owner as IDataGridViewEditingControl)?.EditingControlDataGridView?.CurrentCell?.AccessibilityObject; 107ComboBox ownerComboBoxControl = Owner as ComboBox; 131ComboBox ownerComboBoxControl = Owner as ComboBox;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
375string name = Owner.AccessibleName; 397var owner = Owner as IDataGridViewEditingControl; 413return (Owner as IDataGridViewEditingControl)?.EditingControlDataGridView?.AccessibilityObject;
winforms\Managed\System\WinForms\DateTimePicker.cs (9)
1773char ownerTextMnemonic = WindowsFormsUtils.GetMnemonic(this.Owner.Text, false /*convertToUpperCase*/); 1789return Owner.Text; 1800if(((DateTimePicker)Owner).ShowCheckBox && 1801((DateTimePicker)Owner).Checked) { 1812AccessibleRole role = Owner.AccessibleRole; 1840if (patternId == NativeMethods.UIA_TogglePatternId && ((DateTimePicker)Owner).ShowCheckBox) { 1851return ((DateTimePicker)Owner).Checked ? 1858((DateTimePicker)Owner).Checked = !((DateTimePicker)Owner).Checked;
winforms\Managed\System\WinForms\DomainUpDown.cs (6)
742return ((DomainUpDown)Owner).GetAccessibleName(baseName); 764AccessibleRole role = Owner.AccessibleRole; 787return ((UpDownBase)Owner).TextBox.AccessibilityObject.Parent; 792return ((UpDownBase)Owner).UpDownButtonsInternal.AccessibilityObject.Parent; 852return new DomainItemAccessibleObject(((DomainUpDown)parent.Owner).Items[index].ToString(), this); 859return ((DomainUpDown)parent.Owner).Items.Count;
winforms\Managed\System\WinForms\GroupBox.cs (1)
826AccessibleRole role = Owner.AccessibleRole;
winforms\Managed\System\WinForms\Label.cs (1)
1772AccessibleRole role = Owner.AccessibleRole;
winforms\Managed\System\WinForms\LinkLabel.cs (6)
2658if (index >= 0 && index < ((LinkLabel)Owner).Links.Count) { 2659return new LinkAccessibleObject(((LinkLabel)Owner).Links[index]); 2668if (!Owner.Enabled) { 2677Point p = Owner.PointToClient(new Point(x, y)); 2678Link hit = ((LinkLabel)Owner).PointInLink(p.X, p.Y); 2692return((LinkLabel)Owner).Links.Count;
winforms\Managed\System\WinForms\MenuStrip.cs (1)
292AccessibleRole role = Owner.AccessibleRole;
winforms\Managed\System\WinForms\NumericUpDown.cs (4)
911return ((NumericUpDown)Owner).GetAccessibleName(baseName); 920AccessibleRole role = Owner.AccessibleRole; 941return ((UpDownBase)Owner).TextBox.AccessibilityObject.Parent; 947return ((UpDownBase)Owner).UpDownButtonsInternal.AccessibilityObject.Parent;
winforms\Managed\System\WinForms\ProgressBar.cs (1)
925return Owner as ProgressBar;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2959return(PropertyGridView)((PropertyGridView.PropertyGridViewAccessibleObject)Parent).Owner;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
1056var propertyGridView = propertyGridViewAccessibleObject.Owner as PropertyGridView; 1061propertyGridView = propertyGridViewAccessibleObject.Owner as PropertyGridView; 1123return propertyGridViewAccessibleObject.Owner as PropertyGridView;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
7024string name = Owner.AccessibleName; 7435string name = Owner.AccessibleName; 7447AccessibleRole role = Owner.AccessibleRole; 7458int row = ((PropertyGridView)Owner).GetRowFromGridEntry(current); 7459GridEntry nextEntry = ((PropertyGridView)Owner).GetGridEntryFromRow(++row); 7639int row = ((PropertyGridView)Owner).GetRowFromGridEntry(current); 7640GridEntry prevEntry = ((PropertyGridView)Owner).GetGridEntryFromRow(--row); 7676GridEntryCollection properties = ((PropertyGridView)Owner).AccessibilityGetGridEntries(); 7692GridEntryCollection properties = ((PropertyGridView)Owner).AccessibilityGetGridEntries(); 7708GridEntry gridEntry = ((PropertyGridView)Owner).SelectedGridEntry; 7720GridEntry gridEntry = ((PropertyGridView)Owner).SelectedGridEntry; 7740UnsafeNativeMethods.ScreenToClient(new HandleRef(Owner, Owner.Handle), pt); 7744Point pos = ((PropertyGridView)Owner).FindPosition(pt.x, pt.y); 7746GridEntry gridEntry = ((PropertyGridView)Owner).GetGridEntryFromRow(pos.Y);
winforms\Managed\System\WinForms\RadioButton.cs (4)
657string defaultAction = Owner.AccessibleDefaultActionDescription; 672AccessibleRole role = Owner.AccessibleRole; 686if (((RadioButton)Owner).Checked) { 699((RadioButton)Owner).PerformClick();
winforms\Managed\System\WinForms\StatusStrip.cs (2)
639AccessibleRole role = Owner.AccessibleRole; 656StatusStrip statusStrip = Owner as StatusStrip;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
5072AccessibleRole role = Owner.AccessibleRole;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
783var toolStripComboBoxControl = Owner as ToolStripComboBoxControl; 795var toolStripComboBoxControl = this.Owner as ToolStripComboBoxControl;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
2326AccessibleRole role = Owner.AccessibleRole;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (2)
168return ((ToolStripOverflow)Owner).DisplayedItems[index].AccessibilityObject; 172return ((ToolStripOverflow)Owner).DisplayedItems.Count;
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (2)
550var toolStripProgressBarControl = this.Owner as ToolStripProgressBarControl; 564var toolStripProgressBarControl = Owner as ToolStripProgressBarControl;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
910var toolStripTextBoxControl = this.Owner as ToolStripTextBoxControl; 924var toolStripTextBoxControl = Owner as ToolStripTextBoxControl;
winforms\Managed\System\WinForms\UpDownBase.cs (4)
1826return Owner.ParentInternal.GetType().Name; 1843AccessibleRole role = Owner.AccessibleRole; 1911Rectangle bounds = ((UpDownButtons)parent.Owner).Bounds; 1919return (((UpDownButtons)parent.Owner).ParentInternal).RectangleToScreen(bounds);