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


IVertexFeedback.AddSegment Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IV > IVertexFeedback Interface > IVertexFeedback.AddSegment Method
ArcGIS Developer Help

IVertexFeedback.AddSegment Method

Adds an edge to rubberband.

[Visual Basic .NET]
Public Sub AddSegment ( _
    ByVal segment As ISegment, _
    ByVal fromPointIsAnchor As Boolean _
)
[C#]
public void AddSegment (
    ISegment segment,
    bool fromPointIsAnchor
);
[C++]
HRESULT AddSegment(
  ISegment* segment,
  VARIANT_BOOL fromPointIsAnchor
);
[C++]
Parameters
segment [in]

segment is a parameter of type ISegment* fromPointIsAnchor [in]
fromPointIsAnchor is a parameter of type bool

Product Availability

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

Description

Adds the segments and specifies which end to use as the anchor point. Each time AddSegment is called, a check is made to see if the segment has already been added; if it has, then it is not added a second time. The methods used to move, symbolize, refresh, and setup the display are accessed through the inherited IDisplayFeedback interface. Since there is no Start method, the first call to MoveTo will begin the feedback operation, that is, draw the feedback, and the feedback will be redrawn with each subsequent MoveTo. To finish the operation, the feedback object should be cleared and the display refreshed.

See Also

IVertexFeedback Interface