AddScaleBar

The AddScaleBar method adds a scale bar on the current layer. Returns a ScaleBar object.

 

Syntax

object.AddScaleBar( Left, Top )

 

Parameter

Type

Description

Left

Double

required; left position in page units

Top

Double

required; top position in page units

 

Example

This example adds a scale bar to the layer assigned to the variable CurrentLayer.

 

CurrentLayer.AddScaleBar(Left:=5, Top:=7)

 

Used by: Layer object