IMcGraphObjPoly2InsertPoint Method
|
|
Insert a vertex at a given insertion index.
Namespace:
MediaCy.IQL.Display.Overlays
Assembly:
MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
SyntaxSub InsertPoint (
InsertionIndex As Integer,
x As Single,
y As Single
)
Parameters
- InsertionIndex
- Type: SystemInt32
Index in the current array of points before which the
new vertex should be inserted. Use 0 as the InsertionIndex to add
a point to the beginning of the polyline. Use PointCount as
the InsertionIndex to append a point to the end of the polyline.
The LastTargetIndex property is set to this value. - x
- Type: SystemSingle
- y
- Type: SystemSingle
RemarksDegenerate points (ones that are the same as the existing point
in the array on either side of the new point) are not inserted;
this does not generate an error, but in this case, PointCount will
be the same before and after the call to InsertPoint.
If this method results in a point being added, then an ObjectPropertyChanged
event is fired after the point is added with ObjectID ID_IMcGraphObjPoly2_InsertPoint.
During this event, the LastTargetIndex property will be the InsertionIndex
See Also