ArcObjects Library Reference (Display)  

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 VARIANT_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