MapWinGIS:Shape Point

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

Point

Gets or sets the specified point in the shape.


VB.NET Usage

Property Point(PointIndex As Integer) As MapWinGIS.Point

            Parameters

PointIndex

The index of the point which is to be accessed in the point.
ReturnValue The specified point in the shape.

Sample Code

    Private Sub ShapePoint()
        Dim shape As New MapWinGIS.Shape()
        Dim point As New MapWinGIS.Point()
        'Set the point x and y values
        point.x = 100
        point.y = 200
        'Set the point at index 0 in the shape
        shape.Point(0) = point
        'Get the point at index 1 in the shape
        point = shape.Point(1)
    End Sub
  

VB 6 Usage
Property Point(PointIndex As Long) As Point
            Parameters

PointIndex

The index of the point which is to be accessed in the point.
ReturnValue The specified point in the shape.

Sample Code

    Private Sub ShapePoint()
        Dim shape As New MapWinGIS.shape
        Dim point As New MapWinGIS.point
        'Set the point x and y values
        point.x = 100
        point.y = 200
        'Set the point at index 0 in the shape
        shape.point(0) = point
        'Get the point at index 1 in the shape
        point = shape.point(1)
    End Sub


C# Usage
MapWinGIS.Point get_Point(int PointIndex)

void set_Point(int PointIndex, MapWinGIS.Point pVal)

            Parameters

PointIndex int
Return Value MapWinGIS.Point

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Shape_Point"

This page has been accessed 2,780 times. This page was last modified on 1 October 2008, at 21:16.