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
Namespace: Syncfusion.UI.Xaml.Spreadsheet.GraphicCells
Assembly: Syncfusion.SfSpreadsheet.UWP.dll
Syntax
public class GraphicModel : Object, 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
add_GraphicCellContextMenuOpening(GraphicCellContextMenuOpeningEventHandler)
Declaration
public void add_GraphicCellContextMenuOpening(GraphicCellContextMenuOpeningEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicCellContextMenuOpeningEventHandler | value |
add_GraphicSelectionChanged(GraphicSelectionChangedEventHandler)
Declaration
public void add_GraphicSelectionChanged(GraphicSelectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicSelectionChangedEventHandler | value |
add_GraphicSelectionChanging(GraphicSelectionChangingEventHandler)
Declaration
public void add_GraphicSelectionChanging(GraphicSelectionChangingEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicSelectionChangingEventHandler | value |
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()
Invalidates the visual layout of GraphicCell.
Declaration
public void InvalidateGraphicVisual()
remove_GraphicCellContextMenuOpening(GraphicCellContextMenuOpeningEventHandler)
Declaration
public void remove_GraphicCellContextMenuOpening(GraphicCellContextMenuOpeningEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicCellContextMenuOpeningEventHandler | value |
remove_GraphicSelectionChanged(GraphicSelectionChangedEventHandler)
Declaration
public void remove_GraphicSelectionChanged(GraphicSelectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicSelectionChangedEventHandler | value |
remove_GraphicSelectionChanging(GraphicSelectionChangingEventHandler)
Declaration
public void remove_GraphicSelectionChanging(GraphicSelectionChangingEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
GraphicSelectionChangingEventHandler | value |
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 |