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

MapScript.Ja - classObj.moveStyleDown Diff

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

!!classObj.moveStyleDown メソッド

!!!説明
指定したstyleObjをひとつ下のstyleObjと交換する。
public int moveStyleDown(
    int index
);

Public Function moveStyleDown(ByVal index As Integer) As Integer

!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _layer As layerObj = New layerObj(_map)
Dim _class As classObj = New classObj(_layer)
Dim _style As styleObj
Dim intRet As Integer
_class.numstyles = 4
_style = _class.getStyle(1)
_style.angle = 270
intRet = _class.moveStyleDown(1)

Debug.WriteLine("Retuen:" & intRet.ToString & " " & _class.getStyle(2).angle.ToString)
→結果 Retuen:0 270
!!!!マップファイル
    CLASS
      METADATA
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
      STYLE
        ANGLE 270
        SYMBOL 0
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
    END
!!!参照
[[classObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]