Class GraphicModel
Holds that all information about Graphic Cells and offers many events to notify the actions or to modify the behavior of the Graphic cells.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Spreadsheet.GraphicCells
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class GraphicModel : IDisposable
Constructors
GraphicModel(SpreadsheetGrid)
Initializes a new instance of the GraphicModel class.
Declaration
public GraphicModel(SpreadsheetGrid grid)
Parameters
Type | Name | Description |
---|---|---|
SpreadsheetGrid | grid | An instance of the SpreadsheetGrid |
Properties
GraphicCellRenderers
Gets the collection of GraphicCellRenderers objects for the current grid view method.
Declaration
public GraphicCellRendererCollection GraphicCellRenderers { get; }
Property Value
Type | Description |
---|---|
GraphicCellRendererCollection | Returns the instance of GraphicCellRendererCollection |
GraphicSelectionController
Gets the instance of GraphicSelectionController which handles the selection of Graphic Cells .
Declaration
public GraphicSelectionController GraphicSelectionController { get; }
Property Value
Type | Description |
---|---|
GraphicSelectionController | An instance of GraphicSelectionController |
SelectedShapes
Gets or sets the collection of ShapeImpl which are selected .
Declaration
public List<ShapeImpl> SelectedShapes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ShapeImpl> | List of ShapeImpl collection |
SpreadsheetGrid
Gets the instance of SpreadsheetGrid which displays the data in SfSpreadsheet.
Declaration
public SpreadsheetGrid SpreadsheetGrid { get; }
Property Value
Type | Description |
---|---|
SpreadsheetGrid | An instance of SpreadsheetGrid |
Methods
AddSelectedShapes(ShapeImpl)
Adds the selected shapes in the list
Declaration
public bool AddSelectedShapes(ShapeImpl shape)
Parameters
Type | Name | Description |
---|---|---|
ShapeImpl | shape | An instance of ShapeImpl |
Returns
Type |
---|
System.Boolean |
ClearSelection()
Clears the selection from shapes and move the selection to Grid
Declaration
public void ClearSelection()
Dispose()
Dispose all the resources used by the GraphicModel class
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
InvalidateGraphicObjects()
Invalidates or clears the cached content of GraphicObjects.
Declaration
public void InvalidateGraphicObjects()
InvalidateGraphicVisual(Boolean)
Invalidates the visual layout of GraphicCell.
Declaration
public void InvalidateGraphicVisual(bool updateChart = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | updateChart |
Events
GraphicCellContextMenuOpening
This event will occur before opening the context menu for GraphicCellsGraphicObject.
Declaration
public event GraphicCellContextMenuOpeningEventHandler GraphicCellContextMenuOpening
Event Type
Type |
---|
GraphicCellContextMenuOpeningEventHandler |
GraphicSelectionChanged
This event occurs after the selection of GraphicCells changed.
Declaration
public event GraphicSelectionChangedEventHandler GraphicSelectionChanged
Event Type
Type |
---|
GraphicSelectionChangedEventHandler |
GraphicSelectionChanging
This event occurs before the selection of GraphicCells to be changed.
Declaration
public event GraphicSelectionChangingEventHandler GraphicSelectionChanging
Event Type
Type |
---|
GraphicSelectionChangingEventHandler |