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

MapScript.Ja - lineObj.add Diff

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

!!lineObj.add メソッド
!!!説明
ラインに端点を追加します
public int add(
    pointObj p
);

Public Function add(ByVal p As pointObj) As Integer

!!!サンプル
!!!!コード
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.numpoints.ToString)

→結果 4
!!!!マップファイル
影響なし
!!!参照
[[lineObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]