TriArray(4, 1) = 25 ' Last point has same coordinates as first The color of the triangle's interior will be the same as the default shape's fill color. Because the first and last points have the same coordinates, the polygon is closed and filled. This example adds a triangle to myDocument. To form a closed polygon, assign the same coordinates to the first and last vertices in the polyline drawing. Parameters NameĪn array of coordinate pairs that specifies the polyline drawing's vertices. AddPolyline ( SafeArrayOfPoints)Įxpression A variable that represents a Shapes object. Returns a Shape object that represents the new polyline or polygon. Creates an open polyline or a closed polygon drawing.
0 Comments
Leave a Reply. |