GH_CanvasDropTargetValidator Class

GH_CanvasDropTargetValidator Class

Utility validator for restricting component creation.
Inheritance Hierarchy
SystemObject
  Grasshopper.GUI.CanvasGH_CanvasValidator
    Grasshopper.GUI.CanvasGH_CanvasDropTargetValidator

Namespace:  Grasshopper.GUI.Canvas
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public class GH_CanvasDropTargetValidator : GH_CanvasValidator
Public Class GH_CanvasDropTargetValidator
	Inherits GH_CanvasValidator

The GH_CanvasDropTargetValidator type exposes the following members.

Constructors
  NameDescription
Public methodGH_CanvasDropTargetValidator
Initializes a new instance of the GH_CanvasDropTargetValidator class
Top
Properties
  NameDescription
Protected propertyCanvas
Gets the canvas this validator is associated with.
(Inherited from GH_CanvasValidator.)
Protected propertyDocument
Gets the document (if it exists) that is currently loaded in the canvas.
(Inherited from GH_CanvasValidator.)
Public propertyDropDelegate
Gets or sets the delegate to be invoked when a component is dropped inside the dropregion.
Public propertyDropID
Gets or sets the ID for the allowed component.
Public propertyDropRegion
Gets or sets the dropregion for this validator. Regions are cloned so you can dispose of the original immedately after assignment.
Public propertyDropText
Gets or sets the text to display.
Top
Methods
See Also