GH_CanvasValidator

References
public abstract class GH_CanvasValidator : IGH_CanvasValidator
Abstract implementation of IGH_CanvasValidator. Inherit from this class rather than implementing IGH_CanvasValidator from scratch.

Properties

Canvas

#
Gets the canvas this validator is associated with.
protected GH_Canvas Canvas { get; }

Document

#
Gets the document (if it exists) that is currently loaded in the canvas.
protected GH_Document Document { get; }

Methods

AddedToCanvas

#
Override this method if you want to be informed when this validator gets assigned to a canvas. But *always* call the base class method.
public virtual void AddedToCanvas(
canvas
)
AddedToCanvas

AppliesToDocument

#
public virtual bool AppliesToDocument(
id
)
AppliesToDocument

CanAcceptObject

#
public virtual bool CanAcceptObject(
id
)
CanAcceptObject

CanCreateObject

#
public virtual bool CanCreateObject(
id,
PointF
pt
)
CanCreateObject

CanCreateWire

#
public virtual bool CanCreateWire(
source,
target
)
CanCreateWire

CanDeleteObject

#
public virtual bool CanDeleteObject()
CanDeleteObject

CanDeleteWire

#
public virtual bool CanDeleteWire(
source,
target
)
CanDeleteWire

CanDragObject

#
public virtual bool CanDragObject(
PointF
dragFromPoint
)
CanDragObject

CanNavigateCanvas

#
public virtual bool CanNavigateCanvas()
CanNavigateCanvas

CanShowCanvasMenu

#
public virtual bool CanShowCanvasMenu(
PointF
pt
)
CanShowCanvasMenu

CanShowComponentSearchBox

#
public virtual bool CanShowComponentSearchBox(
PointF
pt
)

CanShowObjectMenu

#
public virtual bool CanShowObjectMenu()
CanShowObjectMenu

RemovedFromCanvas

#
Override this method if you want to be informed when this validator gets removed from a canvas. But *always* call the base class method.
public virtual void RemovedFromCanvas(
canvas
)
RemovedFromCanvas