SelectByPID

 

The SelectByPID method selects or deselects an object in the collection by its primary ID string.

 

Syntax

object.SelectByPID( PIDName, Deselect, Accumulative )

 

Parameter

Type

Description

PIDName

String

required; primary ID

Deselect

Boolean

optional; if true the shape is deselected

Accumulative

Boolean

optional; adds selection to the collection of selected objects

 

Example

This example selects an object with the primary ID of Michigan, and adds it to the selected objects.

 

MapShapes.SelectByPID(PIDName:= "Michigan", _

Deselect:=False, Accumulative:= True)

 

Used by: Shapes collection