SelectByType

 

The SelectByType method selects an object in the collection by its type.

 

Syntax

object.SelectByType( Area, Curve, Point, Text, Rectangle, RoundedRect, Square, Ellipse, Circle, Legend, ID1, ID2, Bitmap, Metafile, ScaleBar )

 

Parameter

Type

Description

Area

Boolean

optional; true to select areas; default: False

Curve

Boolean

optional; true to select curves; default: False

Point

Boolean

optional; true to select points; default: False

Text

Boolean

optional; true to select text; default: False

Rectangle

Boolean

optional; true to select rectangles; default: False

RoundedRect

Boolean

optional; true to select rounded rectangles; default: False

Square

Boolean

optional; true to select squares; default: False

Ellipse

Boolean

optional; true to select ellipses; default: False

Circle

Boolean

optional; true to select circles; default: False

Legend

Boolean

optional; true to select legends; default: False

ID1

Boolean

optional; true to select primary IDs; default: False

ID2

Boolean

optional; true to select secondary IDs; default: False

Bitmap

Boolean

optional; true to select bitmaps; default: False

Metafile

Boolean

optional; true to select metafiles; default: False

ScaleBar

Boolean

optional; true to select scale bars; default: False

 

Example

This example selects the legend on the current map layer.

 

MapShapes.SelectByType(Legend:=True)

 

Used by: Shapes collection