DataGridClipboardCellContent 结构

定义

封装 DataGrid 单元格的值和位置,以供向剪贴板复制内容时使用。Encapsulates the value and location of a DataGrid cell for use when copying content to the Clipboard.

public value class DataGridClipboardCellContent
public struct DataGridClipboardCellContent
type DataGridClipboardCellContent = struct
Public Structure DataGridClipboardCellContent
继承
DataGridClipboardCellContent

注解

此结构由DataGridRowClipboardEventArgs.ClipboardRowContent属性使用。This structure is used by the DataGridRowClipboardEventArgs.ClipboardRowContent property.

构造函数

DataGridClipboardCellContent(Object, DataGridColumn, Object)

初始化 DataGridClipboardCellContent 结构的新实例。Initializes a new instance of the DataGridClipboardCellContent structure.

属性

Column

获取要复制的单元格所在的列。Gets the column that contains the cell being copied.

Content

获取要复制的单元格的文本值。Gets the text value of the cell being copied.

Item

获取包含被复制的单元格的行的数据项。Gets the data item for the row that contains the cell being copied.

方法

Equals(Object)

指示当前和指定的 DataGridClipboardCellContent 实例是否相等。Indicates whether the current and specified DataGridClipboardCellContent instances are equivalent.

GetHashCode()

返回此 DataGridClipboardCellContent 实例的哈希代码。Returns the hash code for this DataGridClipboardCellContent instance.

运算符

Equality(DataGridClipboardCellContent, DataGridClipboardCellContent)

指示指定的 DataGridClipboardCellContent 实例是否相等。Indicates whether the specified DataGridClipboardCellContent instances are equivalent.

Inequality(DataGridClipboardCellContent, DataGridClipboardCellContent)

指示指定的 DataGridClipboardCellContent 实例是否不相等。Indicates whether the specified DataGridClipboardCellContent instances are not equivalent.

适用于

另请参阅