'pLayerがNothingの場合、intLayerからLayerオブジェクトを取得 'pLayerが存在する場合、pLayerからレイヤ インデックス番号を返す Function FindLayerInfomation(ByVal pMap As IMap, ByRef pLayer As ILayer, ByRef intLayer As Integer) If pLayer Is Nothing Then '戻り値:pLayer pLayer = pMap.Layer(LayerIndex) Else For intLayer = 0 To pMap.LayerCount - 1 If pLayer Is pMap.Layer(intLayer) Then '戻り値:現在のintIndex Exit For End If Next intLayer End If End Function
レイヤー情報を取得
2016/9/1 (木)