Class GridModelStyleDataExchange
Implements the functionalities that manages copy and paste of style objects in the grid. Allows you to add and remove selections, determine selection state of a specific cell, and more.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridModelStyleDataExchange : GridModelBound, IDisposable
Constructors
GridModelStyleDataExchange(GridModel)
Initializes a new instance of GridModelStyleDataExchange object and associates it with a GridModel.
Declaration
public GridModelStyleDataExchange(GridModel model)
Parameters
Type | Name | Description |
---|---|---|
GridModel | model | A reference to the parent GridModel. |
Methods
CopyCellsToDataObject(out GridData, GridRangeInfo, Boolean, Int32, out Int32, out Int32)
Determines whether to create a GridData object and initializes it with style objects and covered cell information of a range of cells in the grid.
Declaration
public virtual bool CopyCellsToDataObject(out GridData data, GridRangeInfo range, bool bLoadBaseStyles, int dragDropFlags, out int rowCount, out int colCount)
Parameters
Type | Name | Description |
---|---|---|
GridData | data | A placeholder for the GridData object that is created by the method. |
GridRangeInfo | range | The range of cells to be copied. |
System.Boolean | bLoadBaseStyles | True if information from base styles should also be copied; False if only the settings that were initialized for the cells should be copied. |
System.Int32 | dragDropFlags | A GridDragDropFlags with further options (currently ignored.) |
System.Int32 | rowCount | A placeholder where the number of copied rows is returned. |
System.Int32 | colCount | A placeholder where the number of copied columns is returned. |
Returns
Type | Description |
---|---|
System.Boolean | True if the operation completed successfully; False otherwise. |
CopyCellsToDataObject(out GridData, GridRangeInfoList, Boolean, Int32, out Int32, out Int32)
Determines whether to create a GridData object and initializes it with style objects and covered cell information of a range of cells in the grid.
Declaration
public bool CopyCellsToDataObject(out GridData data, GridRangeInfoList rangeList, bool bLoadBaseStyles, int dragDropFlags, out int rowCount, out int colCount)
Parameters
Type | Name | Description |
---|---|---|
GridData | data | A placeholder for the GridData object that is created by the method. |
GridRangeInfoList | rangeList | A collection with ranges of cells to be copied. |
System.Boolean | bLoadBaseStyles | (currently ignored.) True if information from base styles should also be copied; False if only the settings that were initialized for the cells should be copied. |
System.Int32 | dragDropFlags | (currently ignored.) A GridDragDropFlags with further options. |
System.Int32 | rowCount | A placeholder where the number of copied rows is returned. |
System.Int32 | colCount | A placeholder where the number of copied columns is returned. |
Returns
Type | Description |
---|---|
System.Boolean | True if the operation completed successfully; False otherwise. |
PasteCellsFromDataObject(GridData, GridRangeInfo, Boolean, Int32)
Determines whether to paste the cells from data objects. Initializes a given range of cells in a grid with style objects and covered ranges information from a GridData object.
Declaration
public bool PasteCellsFromDataObject(GridData data, GridRangeInfo range, bool bIgnoreDiffRange, int dragDropFlags)
Parameters
Type | Name | Description |
---|---|---|
GridData | data | The GridData object with cell styles and covered ranges. |
GridRangeInfo | range | The destination range where cell information should be copied to. |
System.Boolean | bIgnoreDiffRange | True if difference in width and height of |
System.Int32 | dragDropFlags | GridDragDropFlags options let you specify if rows or columns can be appended See NoAppendRows and NoAppendCols of the GridDragDropFlags class. |
Returns
Type | Description |
---|---|
System.Boolean | True if operation was successful; False otherwise. |