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

MapScript.Ja - layerObj.moveClassUp Diff

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

!!layerObj.moveClassUp メソッド
!!!説明
インデックスで与えられたクラスをひとつ上げる。
public int moveClassUp(
    int index
);

Public Function moveClassUp(ByVal index As Integer) As Integer

!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_class.name = "arcid"
intRet = _layer.insertClass(_class, 1)
_class2 = _layer.getClass(1)
_class2.name = "arcid2"

intRet = _layer.moveClassUp(1)

→結果 arcid
!!!!マップファイル
  LAYER
    DATA "countries_simpl"
      METADATA
      END
    NAME "World"
    SIZEUNITS PIXELS
    STATUS DEFAULT
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "arcid2"
      METADATA
      END
      STYLE
        ANGLE 360
        COLOR 200 200 200
        OUTLINECOLOR 100 100 100
        SYMBOL 0
      END
    END
    CLASS
      NAME "arcid"
      METADATA
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
    END
  END
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]