Class GridDataModelTextDataExchange
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridDataModelTextDataExchange : GridModelTextDataExchange, IDisposable
Constructors
GridDataModelTextDataExchange(GridDataTableModel)
Declaration
public GridDataModelTextDataExchange(GridDataTableModel model)
Parameters
Type | Name | Description |
---|---|---|
GridDataTableModel | model |
Methods
CalcBufferDimension(String, out Int32, out Int32)
Calculates the Buffer dimentison as how many rows and cols does it required to paste.
Declaration
public override bool CalcBufferDimension(string psz, out int nRows, out int nCols)
Parameters
Type | Name | Description |
---|---|---|
System.String | psz | |
System.Int32 | nRows | |
System.Int32 | nCols |
Returns
Type |
---|
System.Boolean |
Overrides
CopyTextToBuffer(out String, GridRangeInfoList, out Int32, out Int32, Boolean)
Copy cellvalue to the buffer
Declaration
public override bool CopyTextToBuffer(out string buffer, GridRangeInfoList rangeList, out int nrowsdone, out int ncolsdone, bool clear)
Parameters
Type | Name | Description |
---|---|---|
System.String | buffer | contain the formatted text for clipboard |
GridRangeInfoList | rangeList | currently selected rangeList |
System.Int32 | nrowsdone | Number of rows affected |
System.Int32 | ncolsdone | Number of columns affected |
System.Boolean | clear |
Returns
Type | Description |
---|---|
System.Boolean | returns true after successful copy the selected cell text value to the buffer |
Overrides
CopyXmlToBuffer(out String, GridRangeInfoList, out Int32, out Int32, Boolean)
Copy the selected cells in XmlDocument format
Declaration
public override bool CopyXmlToBuffer(out string buffer, GridRangeInfoList rangeList, out int nrowsdone, out int ncolsdone, bool clear)
Parameters
Type | Name | Description |
---|---|---|
System.String | buffer | Returns the Xml content of copied ranges |
GridRangeInfoList | rangeList | currently selected rangeList |
System.Int32 | nrowsdone | Number of rows affected |
System.Int32 | ncolsdone | Number of columns affected |
System.Boolean | clear | Clear the selected ranges. |
Returns
Type | Description |
---|---|
System.Boolean | returns true after successful copy the selected cell text value to the buffer |
Overrides
GetCopyTextRowCol(Int32, Int32)
Get the value of the cell
Declaration
public override string GetCopyTextRowCol(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | contain the row value |
System.Int32 | colIndex | contain the column value |
Returns
Type | Description |
---|---|
System.String | the value of the cell |
Overrides
GetCopyTextRowCol(Int32, Int32, Int32, Int32, Boolean)
Declaration
public virtual string GetCopyTextRowCol(int recordIndex, int visibleColIndex, int rowIndex, int colIndex, bool clear)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recordIndex | |
System.Int32 | visibleColIndex | |
System.Int32 | rowIndex | |
System.Int32 | colIndex | |
System.Boolean | clear |
Returns
Type |
---|
System.String |
PasteTextFromBuffer(String, GridRangeInfoList)
Paste Text From The Buffer
Declaration
public override bool PasteTextFromBuffer(string buffer, GridRangeInfoList rangeList)
Parameters
Type | Name | Description |
---|---|---|
System.String | buffer | For Holding final clipboard value |
GridRangeInfoList | rangeList | conatin the selected range |
Returns
Type | Description |
---|---|
System.Boolean | return true after fill the cell value from the buffer |
Overrides
PasteTextRowCol(Int32, Int32, String)
Pastes the text value to the cell
Declaration
public override bool PasteTextRowCol(int rowIndex, int colIndex, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row value for the cell |
System.Int32 | colIndex | Column value for the cell |
System.String | text | New String value for the cell |
Returns
Type | Description |
---|---|
System.Boolean | successful paste returns true |
Overrides
PasteXmlFromBuffer(XmlDocument, GridRangeInfoList)
Paste the XML formatted text in Grid Control.
Declaration
public override bool PasteXmlFromBuffer(XmlDocument xDocument, GridRangeInfoList rangeList)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xDocument | Xml document contains the copied data. |
GridRangeInfoList | rangeList | Current cell range to paste the copied data |
Returns
Type |
---|
System.Boolean |