Class GraphicCellControl
ContentControl which is used to load the content of GraphicCellControl
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Spreadsheet.GraphicCells
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class GraphicCellControl : ContentControl, IDisposable
Constructors
GraphicCellControl()
Initializes a new instance of the GraphicCellControl class
Declaration
public GraphicCellControl()
Fields
IsSelectedProperty
Identifies the Syncfusion.UI.Xaml.Spreadsheet.GraphicCellControl dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Spreadsheet.GraphicCellControl dependency property.
Properties
IsSelected
Determines whether the GraphicCellControl is selected or not.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True or False |
Methods
Dispose()
Dispose all the resources used by the GraphicCellControl class
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnApplyTemplate()
Builds the visual tree for the GraphicCellControl when a new template is applied.
Declaration
public override void OnApplyTemplate()
OnContextMenuOpening(ContextMenuEventArgs)
Invoked whenever an unhandled System.Windows.FrameworkElement.ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event.
Declaration
protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.ContextMenuEventArgs | e | The System.Windows.Controls.ContextMenuEventArgs that contains the event data. |
Remarks
The contextmenu opens while right click on the graphic cells.
OnKeyDown(KeyEventArgs)
Invoked when an unhandled Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The System.Windows.Input.KeyEventArgs that contains the event data. |
Remarks
Occurs when a key pressed within the element from this class
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
Remarks
Occurs when a pointer leaves the hit test area of this element.
OnMouseMove(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
Remarks
Occurs when the mouse moves while the pointer remains within the hit test area of this element.
OnMouseUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the mouse button was released. |
Remarks
Occurs when a pointer released after press action within this element.
OnPreviewMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that one or more mouse buttons were pressed. |
Remarks
Occurs when a pointer pressed within this element