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