Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

MapScript.Ja - lineObj.point Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!lineObj.point プロパティ
!!!説明
先頭の端点を表すpointObj?
public pointObj point {get;}

Public ReadOnly Property point() As pointObj


!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _line As New lineObj()
Dim _pt1 As New pointObj(-142, 41, 0, 0)
Dim _pt2 As New pointObj(-142, 82, 0, 0)
Dim _pt3 As New pointObj(-51, 82, 0, 0)
Dim _pt4 As New pointObj(-51, 41, 0, 0)

intRet = _line.add(_pt1)
intRet = _line.add(_pt2)
intRet = _line.add(_pt3)
intRet = _line.add(_pt4)

Debug.WriteLine(_line.point.x.ToString & "," & _line.point.y.ToString)

→結果 -142,41
""このプロパティは、先頭の端点を返しているが、使い道がわからない。
!!!!マップファイル
影響なし
!!!参照
[[lineObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]