GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Events

SketchViewModelCreateEvent Class

Event result type for the SketchViewModel.OnCreate event.

public class SketchViewModelCreateEvent :
System.IEquatable<dymaptic.GeoBlazor.Pro.Events.SketchViewModelCreateEvent>

Inheritance System.Object 🡒 SketchViewModelCreateEvent

Implements System.IEquatable<SketchViewModelCreateEvent>

Constructors

SketchViewModelCreateEvent(Graphic, Nullable, Nullable, ICreateToolEventInfo) Constructor

Event result type for the SketchViewModel.OnCreate event.

public SketchViewModelCreateEvent(dymaptic.GeoBlazor.Core.Components.Graphic? Graphic=null, System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchEventState> State=null, System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchTool> Tool=null, dymaptic.GeoBlazor.Core.Interfaces.ICreateToolEventInfo? ToolEventInfo=null);

Parameters

Graphic dymaptic.GeoBlazor.Core.Components.Graphic

The graphic that is being created.

State System.Nullable<SketchEventState>

The current state of the event.

Tool System.Nullable<SketchTool>

Name of the create tool.

ToolEventInfo dymaptic.GeoBlazor.Core.Interfaces.ICreateToolEventInfo

Returns additional information associated with
the create operation such as where the user is clicking the view or where the user is moving the cursor to.
Value of this parameter changes to

null  
``` when the   
  
```csharp  
create  
``` event's   
  
```csharp  
state  
``` changes to   
  
```csharp  
complete  
``` or   
  
```csharp  
cancel  
```.
### Properties

<a name='dymaptic.GeoBlazor.Pro.Events.SketchViewModelCreateEvent.Graphic'></a>

## SketchViewModelCreateEvent.Graphic Property

The graphic that is being created.

```csharp
public dymaptic.GeoBlazor.Core.Components.Graphic? Graphic { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Components.Graphic

SketchViewModelCreateEvent.State Property

The current state of the event.

public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchEventState> State { get; set; }

Property Value

System.Nullable<SketchEventState>

SketchViewModelCreateEvent.Tool Property

Name of the create tool.

public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchTool> Tool { get; set; }

Property Value

System.Nullable<SketchTool>

SketchViewModelCreateEvent.ToolEventInfo Property

Returns additional information associated with
the create operation such as where the user is clicking the view or where the user is moving the cursor to.
Value of this parameter changes to

null  
``` when the   
  
```csharp  
create  
``` event's   
  
```csharp  
state  
``` changes to   
  
```csharp  
complete  
``` or   
  
```csharp  
cancel  
```.

```csharp
public dymaptic.GeoBlazor.Core.Interfaces.ICreateToolEventInfo? ToolEventInfo { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Interfaces.ICreateToolEventInfo