GH_CanvasDropTargetValidator
GH_CanvasValidatorUtility validator for restricting component creation.
Constructors
GH_CanvasDropTargetValidator
#public GH_CanvasDropTargetValidator()
Properties
Document
Gets the document (if it exists) that is currently loaded in the canvas.
DropDelegate
#Gets or sets the delegate to be invoked when a component is dropped inside the dropregion.
DropRegion
#Gets or sets the dropregion for this validator. Regions are cloned so you can dispose of the original immedately after assignment.
Methods
AppliesToDocument
#Parameters:
| id (Guid) |
Overrides: GH_CanvasValidator.AppliesToDocument
CanAcceptObject
#Parameters:
| id (Guid) |
Overrides: GH_CanvasValidator.CanAcceptObject
CanCreateObject
#Overrides: GH_CanvasValidator.CanCreateObject
Implements: CanCreateWire
Implements: CanDeleteWire
CanDragObject
#Parameters:
| object (IGH_DocumentObject) | |
| dragFromPoint (PointF) |
Overrides: GH_CanvasValidator.CanDragObject
CanShowComponentSearchBox
#Parameters:
| pt (PointF) |
Overrides: GH_CanvasValidator.CanShowComponentSearchBox