This document is archived and information here might be outdated.  Recommended version.


IRubberBand Interface (ArcObjects .NET 10.5 SDK)
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 Polyline | Draw Rectangle | Draw Polygon | Get Polyline From Mouse Clicks

.NET Samples

Dynamic display animated zoom (Code Files: AnimatedZoomInTool AnimatedZoomOutTool) | Custom map selection commands (Code Files: SelectFeatures) | Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Create a custom tool (Code Files: DrawGraphicLine) | 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