2 writes to owner
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
4754this.owner = owner; 4853this.owner = value;
140 references to owner
System.Windows.Forms (140)
winforms\Managed\System\WinForms\DataGridViewCell.cs (140)
4796return this.owner.GetType().Name + "(" + owner.GetType().BaseType.Name + ")"; 4805if (this.owner == null) 4809if (this.owner.OwningColumn != null) 4811string name = SR.GetString(SR.DataGridView_AccDataGridViewCellName, this.owner.OwningColumn.HeaderText, this.owner.OwningRow.Index); 4813if (AccessibilityImprovements.Level3 && owner.OwningColumn.SortMode != DataGridViewColumnSortMode.NotSortable) 4845return this.owner; 4849if (this.owner != null) 4871if (this.owner == null) 4875if (this.owner.OwningRow == null) 4881return this.owner.OwningRow.AccessibilityObject; 4900if (this.owner == null) 4906if (this.owner == this.owner.DataGridView.CurrentCell) 4911if (this.owner.Selected) 4916if (AccessibilityImprovements.Level1 && this.owner.ReadOnly) 4922if (this.owner.OwningColumn != null && this.owner.OwningRow != null) 4924cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(this.owner.OwningColumn.Index, this.owner.OwningRow.Index, false /*cutOverflow*/); 4926else if (this.owner.OwningRow != null) 4928cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(-1, this.owner.OwningRow.Index, false /*cutOverflow*/); 4930else if (this.owner.OwningColumn != null) 4932cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(this.owner.OwningColumn.Index, -1, false /*cutOverflow*/); 4936cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(-1, -1, false /*cutOverflow*/); 4939if (!cellBounds.IntersectsWith(this.owner.DataGridView.ClientRectangle)) 4954if (this.owner == null) 4959object formattedValue = this.owner.FormattedValue; 4969else if (this.owner.OwningColumn != null) 4971TypeConverter converter = this.owner.FormattedValueTypeConverter; 4990if (this.owner is DataGridViewHeaderCell) 4995if (this.owner.ReadOnly) 5000if (this.owner.OwningRow == null) 5005if (this.owner.DataGridView.IsCurrentCellInEditMode) 5009this.owner.DataGridView.EndEdit(); 5012DataGridViewCellStyle dataGridViewCellStyle = this.owner.InheritedStyle; 5015object formattedValue = this.owner.GetFormattedValue(value, 5016this.owner.OwningRow.Index, 5022this.owner.Value = owner.ParseFormattedValue(formattedValue, 5033if (this.owner == null) 5083if (this.owner == null) 5088if (this.owner.OwningColumn == null) 5097int firstVisibleColumnIndex = this.owner.DataGridView.Columns.ColumnIndexToActualDisplayIndex(this.owner.DataGridView.FirstDisplayedScrollingColumnIndex, DataGridViewElementStates.Visible); 5098int visibleColumnIndex = this.owner.DataGridView.Columns.ColumnIndexToActualDisplayIndex(this.owner.ColumnIndex, DataGridViewElementStates.Visible); 5100bool rowHeadersVisible = this.owner.DataGridView.RowHeadersVisible; 5111columnRect.X -= this.owner.OwningColumn.Width; 5117columnRect.Width = this.owner.OwningColumn.Width; 5121columnRect = this.owner.DataGridView.GetColumnDisplayRectangle(this.owner.ColumnIndex, false /*cutOverflow*/); 5122int negOffset = this.owner.DataGridView.FirstDisplayedScrollingColumnHiddenWidth; 5126if (this.owner.DataGridView.RightToLeft == RightToLeft.No) 5132columnRect = this.owner.DataGridView.RectangleToScreen(columnRect); 5142if (this.owner.DataGridView.RightToLeft == RightToLeft.No) 5148columnRect.X -= this.owner.OwningColumn.Width; 5151columnRect.Width = this.owner.OwningColumn.Width; 5164if (this.owner is DataGridViewButtonCell || 5165this.owner is DataGridViewCheckBoxCell || 5166this.owner is DataGridViewComboBoxCell || 5167this.owner is DataGridViewImageCell || 5168this.owner is DataGridViewLinkCell || 5169this.owner is DataGridViewTextBoxCell) 5182if (this.owner == null) 5187if (this.owner.DataGridView.EditingControl != null && 5188this.owner.DataGridView.IsCurrentCellInEditMode && 5189this.owner.DataGridView.CurrentCell == this.owner && 5192return this.owner.DataGridView.EditingControl.AccessibilityObject; 5203if (this.owner == null) 5208if (this.owner.DataGridView.EditingControl != null && 5209this.owner.DataGridView.IsCurrentCellInEditMode && 5210this.owner.DataGridView.CurrentCell == this.owner) 5236if (this.owner == null) 5241if (this.owner.OwningColumn == null || this.owner.OwningRow == null) 5249if (this.owner.DataGridView.RightToLeft == RightToLeft.No) 5260if (this.owner.DataGridView.RightToLeft == RightToLeft.No) 5271if (this.owner.OwningRow.Index == this.owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible)) 5273if (this.owner.DataGridView.ColumnHeadersVisible) 5276return this.owner.OwningColumn.HeaderCell.AccessibilityObject; 5285int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.OwningRow.Index, DataGridViewElementStates.Visible); 5286return this.owner.DataGridView.Rows[previousVisibleRow].Cells[this.owner.OwningColumn.Index].AccessibilityObject; 5289if (this.owner.OwningRow.Index == this.owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)) 5295int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.OwningRow.Index, DataGridViewElementStates.Visible); 5296return this.owner.DataGridView.Rows[nextVisibleRow].Cells[this.owner.OwningColumn.Index].AccessibilityObject; 5305if (this.owner.OwningColumn == this.owner.DataGridView.Columns.GetFirstColumn(DataGridViewElementStates.Visible)) 5323if (this.owner.DataGridView.RowHeadersVisible) 5325return this.owner.OwningRow.AccessibilityObject.GetChild(0); 5335int previousVisibleColumnIndex = this.owner.DataGridView.Columns.GetPreviousColumn(this.owner.OwningColumn, 5338return this.owner.OwningRow.Cells[previousVisibleColumnIndex].AccessibilityObject; 5344if (this.owner.OwningColumn == this.owner.DataGridView.Columns.GetLastColumn(DataGridViewElementStates.Visible, 5377int nextVisibleColumnIndex = this.owner.DataGridView.Columns.GetNextColumn(this.owner.OwningColumn, 5380return this.owner.OwningRow.Cells[nextVisibleColumnIndex].AccessibilityObject; 5388if (this.owner == null) 5394this.owner.DataGridView.FocusInternal(); 5398this.owner.Selected = true; 5399this.owner.DataGridView.CurrentCell = this.owner; // Do not change old selection 5404this.owner.Selected = true; 5409this.owner.Selected = false; 5482return owner.DataGridView.AccessibilityObject; 5488if (this.owner == null) 5493if (this.owner.OwningColumn == null || this.owner.OwningRow == null) 5501return this.owner.OwningRow.AccessibilityObject; 5508if (this.owner.DataGridView.CurrentCell == this.owner && 5509this.owner.DataGridView.IsCurrentCellInEditMode && 5510this.owner.DataGridView.EditingControl != null) 5537return owner.DataGridView.Enabled; 5580this.owner.ColumnIndex != -1 && this.owner.RowIndex != -1) 5593if (this.owner.DataGridView.RowHeadersVisible && this.owner.OwningRow.HasHeaderCell) 5595return new UnsafeNativeMethods.IRawElementProviderSimple[1] { this.owner.OwningRow.HeaderCell.AccessibilityObject }; 5604if (this.owner.DataGridView.ColumnHeadersVisible && this.owner.OwningColumn.HasHeaderCell) 5606return new UnsafeNativeMethods.IRawElementProviderSimple[1] { this.owner.OwningColumn.HeaderCell.AccessibilityObject }; 5617return this.owner.OwningRow != null ? this.owner.OwningRow.Index : -1; 5626return this.owner.OwningColumn != null ? this.owner.OwningColumn.Index : -1; 5635return this.owner.DataGridView.AccessibilityObject;