The Polyline (polygon open and closed) object

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 7.5.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public class IEObjectPolyLine : IEObject
Public Class IEObjectPolyLine _
	Inherits IEObject
public ref class IEObjectPolyLine : public IEObject

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
IEObjectPolyLine(IEAnnotations)
Creates a new POLYLINE object
IEObjectPolyLine(IEAnnotations, Boolean, Int32, Int32, Boolean, Int32)

Create a closed polyline (polygon) making a flood fill starting from x,y point.

This method is usefull to create a polygon following the image edges.

AddPoint(Int32, Int32)
Add a point to the end of a polyline.
BlendOperation
BlendOperation specifies the blending operation. Default is RenderOperation.Normal.
Bottom
Specifies the bottom offset of this object. The coordinates are in pixels with zoom = 100%. When setting Bottom also Top is moved in order to maintain the original object width.
BrushColor
Get/set the object brush color
BrushStyle
Specifies the pattern for the brush.
CalculateArea()()()()
Returns the area of the specified polyline. It closes the polyline if necessary.
CalculateCentroid()()()()
Calculates x,y centroid coordinates of the specified polyline. The point is in bitmap coordinates.
CalculateLength()()()()

Returns the length (perimeter) of the specified polyline.

If polyline is made of two point, GetPolylineLen calculates the line length; if polyline is made of three or more points it calculates the perimeter.

Closed
Closed is True if it is required to closed the polyline (so it is like a polygon).
CopyTo(IEAnnotations)
Copies the object to another IEAnnotation class
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetObjectDiagonalLen

GetObjectDiagonalLen returns the diagonal length of the specified object.

For a box (image or rectangle) it is the diagonal length. For a line (or ruler) it is the line or ruler length.

GetPoints(Int32)

GetPoints allows to get the points the makes the polyline.

Use PointsCount to know how much points contains the polyline.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Height
The height of the object
ID
ID is an application value for the object. IEvolution doesn't use this value, but saves and loads like other properties.
IsVisible()()()()
Checks if this object is visible.
Layer
Specifies layer index where the object is located (drawed and referenced). Default is "0" and means draw on layer 0.
Left
The left coordinate of the object
MaintainAspectRatio
When true, the object maintain the aspect ratio when resized (like ALT key).
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Name
Name is an application string for the object. IEvolution doesn't use this value, but saves and loads like other properties.
PenColor
Get/set the object pen color
PenStyle
Determines the style in which the pen draws lines.
PenWidth
Use Width to give the line greater weight.
PointsCount

GetPoints allows to get the points the makes the polyline.

Use PointsCount to know how much points contains the polyline.

Rect
Set/get the object rectangle.
RemoveJaggedEdges()()()()

RemoveJahhedEdges eliminates the jagged edges from a polygon.

This function can smooth angles.

RemovePoint(Int32)
Removes a point from the polyline.
Right
Specifies the right offset of this object. The coordinates are in pixels with zoom = 100%. When setting Right also Left is moved in order to maintain the original object width.
Rotate(Double, IERCenter)

Rotates all objects by the specified angle (in degrees).

If center is Image only 90/180/270 degrees rotations are allowed.

BOX, ELLIPSE, BITMAP and TEXT can be rotated only by 90/180/270 degrees.

This method doesn't work with MEMO and curved texts.

It is better to call RotateAll before rotate the background image.

Selected

Allows to know if the object is selected.

Also it allows to select the object.

SetBackTo(IEObject)
Moves the object back to the specified one.
SetInFronOf(IEObject)
Moves the object over the specified one.
SetPoints(array<IEPoint>[]()[][], Int32)
Specifies the points that compose the polyline for the polyline object. The points are specified in bitmap coordinates.
Shadow
Specifies the object shadow properties
Simplify(Int32)
SimplifyPolygon approximates a high resolution polyline with a smaller low resolution polyline having fewer vertices (MaxPoints).
StretchTextRect()()()()

Stretches text rectangle to the size required to display the whole text.

Note: borders (see ObjPenWidth) can hide some text. To avoid this disable ZoomObjectsWidth.

This method works only with horizontal text and only for iekTEXT objects.

Style
Specifies the object behavior.
Top
The top coordinate of the object
ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Transparency

Specifies the object transparency.

0=fully transparent 255=fully opaque

Width
The width of the object

Inheritance Hierarchy

System..::..Object
  HiComponents.IEvolution..::..IEObject
    HiComponents.IEvolution..::..IEObjectPolyLine

See Also