Class ClickEventArgs
Notifies when clicking on an object or diagram.
Inheritance
System.Object
ClickEventArgs
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class ClickEventArgs : Object
Examples
<SfDiagramComponent Width = "1000px" Height="1000px" Click="click">
</SfDiagramComponent>
@code
{
private void click(ClickEventArgs args)
{
if (args.ActualObject != null)
{
Console.WriteLine("Clicked");
}
}
}
Constructors
ClickEventArgs()
Declaration
public ClickEventArgs()
Properties
ActualObject
Gets the object to be clicked on. It returns null when there is no object present in the clicked position.
Declaration
public IDiagramObject ActualObject { get; }
Property Value
Type |
---|
IDiagramObject |
Button
Gets the mouse button that has to be clicked.
Declaration
public MouseButtons Button { get; }
Property Value
Type |
---|
MouseButtons |
Count
Gets the number of times the object or diagram has to be clicked.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Element
Gets the object if the clicked position has an object or returns the diagram.
Declaration
public IDiagramObject Element { get; }
Property Value
Type |
---|
IDiagramObject |
Position
Gets the clicked position in the diagram.
Declaration
public DiagramPoint Position { get; }
Property Value
Type |
---|
DiagramPoint |