AutoRearrangeText

 

The AutoRearrangeText method repositions overlapping text. This method applies to basic ID labels, such as PID and SID labels, and not to Data Labels.

 

Syntax

object.AutoRearrangeText( Method, OKToOverlapPoint, SelectedTextOnly, DistLimit, DistInc, AngIncDeg, UseLead, LeadAtBottom, LeadUsesTextColor, LeadLineColor, LeadLineStyle, LeadLineWidth, LeadArrowStartStyle, LeadArrowEndStyle, LeadArrowScale )

 

Parameter

Type

Description

Method

MVArrangeTextMethod

optional; rearranging methods

OKToOverlapPoint

Boolean

optional; true if it is OK to overlap text with points

SelectedTextOnly

Boolean

optional; limit to selected text only

DistLimit

Double

optional; maximum distance allowed to move in page units

DistInc

Double

optional; distance increment in page units

AngIncDeg

Integer

optional; angle increment in degrees

UseLead

Boolean

optional; true to create text leader

LeadAtBottom

Boolean

optional; true to place lead at the bottom of the layer

LeadUsesTextColor

Boolean

optional; true to use text color for leader line

LeadLineColor

MVColor

optional; leader line color

LeadLineStyle

String

optional; leader line style

LeadLineWidth

Double

optional; leader line width in page units

LeadArrowStartStyle

MVArrowStyle

optional; arrow start style

LeadArrowEndStyle

MVArrowStyle

optional; arrow end style

LeadArrowScale

Double

optional; arrow scale

 

Remarks

Use the enumeration [mvColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color.

 

Example

    'AutoRearrangeText

    'Create a base map layer of California and assign it to the variable "BaseMap"

    Set BaseMap = Plot.CreateBaseMap(FileName:=mvApp.ModuleFolder + "\Samples\CA2010.gsb")

 

    'Show the PIDs on the base map by selecting everything and applying the PID

    BaseMap.Shapes.SelectAll

    BaseMap.Selection.IDPositionAndVisibility(ApplyPIDPosition:=True, ApplyPIDVisibility:=True, ShowPID:=True)

 

    'Rearrange the PIDs so they don't overlap and create a blue leader line to the new positions on the bottom of the layer

    Plot.AutoRearrangeText(Method:=mvArrangeTextAroundClock, UseLead:=True, LeadAtBottom:=True, LeadLineColor:=mvColorBlue)

 

Used by: PlotDocument object