C# Класс SourceGrid.RangeData

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ClipboardGetData ( ) : RangeData

Get a RangeData object from the clipboard. Return null if the clipboard doesn't contains valid data formats.

ClipboardSetData ( RangeData rangeData ) : void

Copy the specified RangeData object the the clipboard

FindDestinationRange ( GridVirtual destinationGrid, Position dropDestination ) : Range

Calculate the destination range for the drop or paste operations.

LoadData ( GridVirtual sourceGrid, Range sourceRange, Position startDragPosition, CutMode cutMode ) : void

Load the specified range data into a string array. This method use the cell editor to get the value.

LoadData ( string data ) : void

Load the data from a Tab delimited string of data. Each column is separated by a Tab and each row by a LineFeed character.

WriteData ( GridVirtual destinationGrid, Range destinationRange ) : void

Write the current loaded array string in the specified grid range. This method use the cell editor to set the value.

Защищенные методы

Метод Описание
DataToString ( string values, Range range ) : string

Convert a range and an array of string into a string. Normally using a tab delimited for columns and a LineFeed for rows.

StringToData ( string data, Range &range, string &values ) : void

Convert a string buffer into a Range object and an array of string.

Приватные методы

Метод Описание
RangeData ( ) : System

Static constructor

Описание методов

ClipboardGetData() публичный статический Метод

Get a RangeData object from the clipboard. Return null if the clipboard doesn't contains valid data formats.
public static ClipboardGetData ( ) : RangeData
Результат RangeData

ClipboardSetData() публичный статический Метод

Copy the specified RangeData object the the clipboard
public static ClipboardSetData ( RangeData rangeData ) : void
rangeData RangeData
Результат void

DataToString() защищенный Метод

Convert a range and an array of string into a string. Normally using a tab delimited for columns and a LineFeed for rows.
protected DataToString ( string values, Range range ) : string
values string
range Range
Результат string

FindDestinationRange() публичный Метод

Calculate the destination range for the drop or paste operations.
public FindDestinationRange ( GridVirtual destinationGrid, Position dropDestination ) : Range
destinationGrid GridVirtual
dropDestination Position
Результат Range

LoadData() публичный Метод

Load the specified range data into a string array. This method use the cell editor to get the value.
public LoadData ( GridVirtual sourceGrid, Range sourceRange, Position startDragPosition, CutMode cutMode ) : void
sourceGrid GridVirtual
sourceRange Range
startDragPosition Position Starting drag position. Used only for calculating drop destination range.
cutMode CutMode Cut mode. Can be used to remove the data from the source when pasting it to the destination or immediately.
Результат void

LoadData() публичный Метод

Load the data from a Tab delimited string of data. Each column is separated by a Tab and each row by a LineFeed character.
public LoadData ( string data ) : void
data string
Результат void

StringToData() защищенный Метод

Convert a string buffer into a Range object and an array of string.
protected StringToData ( string data, Range &range, string &values ) : void
data string
range Range
values string
Результат void

WriteData() публичный Метод

Write the current loaded array string in the specified grid range. This method use the cell editor to set the value.
public WriteData ( GridVirtual destinationGrid, Range destinationRange ) : void
destinationGrid GridVirtual
destinationRange Range
Результат void