Show / Hide Table of Contents

Struct DataGridClipboardCellContent

This structure encapsulate the cell information necessary when clipboard content is prepared.

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.dll
Syntax
public struct DataGridClipboardCellContent

Constructors

| Improve this Doc View Source

DataGridClipboardCellContent(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 Source

Column

DataGridColumn containing the cell.

Declaration
public readonly DataGridColumn Column { get; }
Property Value
Type Description
DataGridColumn
| Improve this Doc View Source

Content

Cell content.

Declaration
public readonly object Content { get; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

Item

DataGrid row item containing the cell.

Declaration
public readonly object Item { get; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

Equals(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
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a deterministic hash code.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Hash value.

Overrides
System.ValueType.GetHashCode()

Operators

| Improve this Doc View Source

Equality(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source