Struct DataGridClipboardCellContent
This structure encapsulate the cell information necessary when clipboard content is prepared.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.dll
Syntax
public struct DataGridClipboardCellContent
Constructors
| Improve this Doc View SourceDataGridClipboardCellContent(Object, DataGridColumn, Object)
Creates a new DataGridClipboardCellValue structure containing information about a DataGrid cell.
Declaration
public DataGridClipboardCellContent(object item, DataGridColumn column, object content)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | DataGrid row item containing the cell. |
DataGridColumn | column | DataGridColumn containing the cell. |
System.Object | content | DataGrid cell value. |
Properties
| Improve this Doc View SourceColumn
DataGridColumn containing the cell.
Declaration
public readonly DataGridColumn Column { get; }
Property Value
Type | Description |
---|---|
DataGridColumn |
Content
Cell content.
Declaration
public readonly object Content { get; }
Property Value
Type | Description |
---|---|
System.Object |
Item
DataGrid row item containing the cell.
Declaration
public readonly object Item { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceEquals(Object)
Field-by-field comparison to avoid reflection-based ValueType.Equals.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | DataGridClipboardCellContent to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True iff this and data are equal |
Overrides
GetHashCode()
Returns a deterministic hash code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash value. |
Overrides
Operators
| Improve this Doc View SourceEquality(DataGridClipboardCellContent, DataGridClipboardCellContent)
Field-by-field comparison to avoid reflection-based ValueType.Equals.
Declaration
public static bool operator ==(DataGridClipboardCellContent clipboardCellContent1, DataGridClipboardCellContent clipboardCellContent2)
Parameters
Type | Name | Description |
---|---|---|
DataGridClipboardCellContent | clipboardCellContent1 | The first DataGridClipboardCellContent. |
DataGridClipboardCellContent | clipboardCellContent2 | The second DataGridClipboardCellContent. |
Returns
Type | Description |
---|---|
System.Boolean | True iff clipboardCellContent1 and clipboardCellContent2 are equal. |
Inequality(DataGridClipboardCellContent, DataGridClipboardCellContent)
Field-by-field comparison to avoid reflection-based ValueType.Equals.
Declaration
public static bool operator !=(DataGridClipboardCellContent clipboardCellContent1, DataGridClipboardCellContent clipboardCellContent2)
Parameters
Type | Name | Description |
---|---|---|
DataGridClipboardCellContent | clipboardCellContent1 | The first DataGridClipboardCellContent. |
DataGridClipboardCellContent | clipboardCellContent2 | The second DataGridClipboardCellContent. |
Returns
Type | Description |
---|---|
System.Boolean | True iff clipboardCellContent1 and clipboardCellContent2 are NOT equal. |