ArcObjects Library Reference (Display)  

IRubberBand Interface

Provides access to members that control simple rubberbanding. Note: the IRubberBand interface has been superseded byIRubberBand2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method TrackExisting Indicates if to move or reshape an existing shape on the specified screen in response to a mouse down event.
Method TrackNew Call in response to mouse down event to rubberband a new shape on the specified screen.

CoClasses that implement IRubberBand

CoClasses and Classes Description
RubberCircle Rubberbanding class for circles.
RubberEnvelope Rubberbanding class for simple envelopes.
RubberLine Rubberbanding class for lines.
RubberPoint Rubberbanding class for points.
RubberPolygon Rubberbanding class for polygons.
RubberRectangularPolygon Rubberbanding class for rectangular polygons (rotatable envelopes).

Remarks

The IRubberBand interface is implemented in separate classes (RubberEnvelope, RubberLine, RubberPoint , and RubberPolygon ). Each of these classes contains methods for creating a RubberBand object.

.NET Snippets

Draw Polygon | Draw Rectangle | Draw Polyline | Get Polyline From Mouse Clicks |

.NET Samples

Create a custom tool (Code Files: DrawGraphicLine) | Custom map selection commands (Code Files: SelectFeatures) | Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Dynamic display animated zoom (Code Files: AnimatedZoomInTool AnimatedZoomOutTool) | RubberBand zoom (Code Files: RubberBandZoom) |

.NET Related Topics

Create a custom tool | How to draw a polygon on the screen | How to draw a polyline on the screen | How to draw a rectangle on the screen |