layerObj.whichShapes
layerObj.whichShapes メソッド
説明
nextShape()などのために、与えれらた範囲の地物を探します
public int whichShapes( rectObj rect );
Public Function whichShapes(ByVal rect As rectObj) As Integer
サンプル
コード
Dim _map As New mapObj("") Dim _layer As New layerObj(_map) Dim _shape As New shapeObj(MS_LAYER_TYPE.MS_LAYER_POLYGON) intRet = _layer.open _rect = _map.extent intRet = _layer.whichShapes(_rect) _shape = _layer.nextShape Debug.WriteLine(_shape.numlines.ToString) _layer.close() →結果 1
マップファイル
影響なし
Keyword(s):
References:[layerObj メンバ]