The BorderingNeighbors method finds areas adjacent to a selected area and reports statistics of the neighborhood, equivalent to the Analysis | Bordering Neighbors command.
Syntax
object.BorderingNeighbors( PIDName, ReportStatistics, WksCol )
Parameter |
Type |
Description |
PIDName |
String |
required; area primary ID |
ReportStatistics |
Boolean |
optional; true to report statistics |
WksCol |
Integer |
optional; data column on which to generate statistics, column A equals 1 |
Example
'BorderingNeighbors
'Select the bordering neighbors of the boundary with the PID "Arizona"
CurrentLayer.BorderingNeighbors(PIDName:="Arizona")
Used by: Layer object