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


IRubberBand.TrackNew Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

IRubberBand.TrackNew Method

Call in response to mouse down event to rubberband a new shape on the specified screen.

[Visual Basic .NET]
Public Function TrackNew ( _
    ByVal ScreenDisplay As IScreenDisplay, _
    ByVal Symbol As ISymbol _
) As IGeometry
[C#]
public IGeometry TrackNew (
    IScreenDisplay ScreenDisplay,
    ISymbol Symbol
);
[C++]
HRESULT TrackNew(
  IScreenDisplay* ScreenDisplay,
  ISymbol* Symbol,
  IGeometry** Geometry
);
[C++]

Parameters ScreenDisplay [in]
ScreenDisplay is a parameter of type IScreenDisplay Symbol [in]
Symbol is a parameter of type ISymbol Geometry [out, retval]
Geometry is a parameter of type IGeometry

Product Availability

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

See Also

IRubberBand Interface

.NET Snippets

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

.NET Samples

Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Create a custom tool (Code Files: DrawGraphicLine)

.NET Related Topics

Create a custom tool