# GH_CanvasDropTargetValidator class

Namespace: [Grasshopper.GUI.Canvas](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.canvas.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_CanvasDropTargetValidator : GH_CanvasValidator
```

Utility validator for restricting component creation.

## Constructors

- [GH_CanvasDropTargetValidator](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/ctor.md)

## Properties

- [DropDelegate](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/dropdelegate.md): Gets or sets the delegate to be invoked when a component is dropped inside the dropregion.
- [DropID](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/dropid.md): Gets or sets the ID for the allowed component.
- [DropRegion](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/dropregion.md): Gets or sets the dropregion for this validator. Regions are cloned so you can dispose of the original immedately after assignment.
- [DropText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/droptext.md): Gets or sets the text to display.

## Methods

- [AddedToCanvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/addedtocanvas.md)
- [AppliesToDocument](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/appliestodocument.md)
- [CanAcceptObject](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/canacceptobject.md)
- [CanCreateObject](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/cancreateobject.md)
- [CanDeleteObject](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/candeleteobject.md)
- [CanDragObject](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/candragobject.md)
- [CanShowCanvasMenu](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/canshowcanvasmenu.md)
- [CanShowComponentSearchBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/canshowcomponentsearchbox.md)
- [RemovedFromCanvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasdroptargetvalidator/removedfromcanvas.md)

## Inherited Members

- From [GH_CanvasValidator](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator.md): [Canvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/canvas.md), [Document](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/document.md), [CanCreateWire](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/cancreatewire.md), [CanDeleteWire](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/candeletewire.md), [CanNavigateCanvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/cannavigatecanvas.md), [CanShowObjectMenu](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasvalidator/canshowobjectmenu.md)
