Class DiagramElementMouseEventArgs
Notifies when the mouse events such as mouse enter, mouse leave, and mouseover are detected.
Inheritance
System.Object
DiagramElementMouseEventArgs
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramElementMouseEventArgs : Object
Examples
<SfDiagramComponent Width="1000px" Height="1000px" MouseEnter="@MouseEnter">
</SfDiagramComponent>
@code
{
private void MouseEnter(DiagramElementMouseEventArgs args)
{
if ((args != null) && (args.ActualObject != null))
{
Console.WriteLine("Mouse Entered");
}
}
}
Constructors
DiagramElementMouseEventArgs()
Declaration
public DiagramElementMouseEventArgs()
Properties
ActualObject
Gets the object such as a node or connector when it is dragged from the symbol palette into the diagram.
Declaration
public IDiagramObject ActualObject { get; }
Property Value
Type | Description |
---|---|
IDiagramObject | The diagram object that is being dragged from the symbol palette into the diagram. |
Element
Gets the helper element from the symbol palette into the diagram while dragging
Declaration
public IDiagramObject Element { get; }
Property Value
Type |
---|
IDiagramObject |
Targets
Gets the collection of objects over which the selected items are dragged
Declaration
public ObservableCollection<IDiagramObject> Targets { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IDiagramObject> | The collection of diagram objects that the selected items are being dragged over. |