MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:Shape Point

From MapWindow GIS

Jump to: navigation, search

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://www.mapwindow.org/wiki/index.php/MapWinGIS:Shape_Point"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: December 03 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links