SetLegendText

 

Purpose: Set the text for existing legend entries on a schedule

 

Argument  

Type

Required

Purpose

1

Integer

Yes

Index of legend entry to be set (1-30)

2

String

Yes

Text for line one of this legend entry

3

String

No

Text for line two of this legend entry

 

 

             

 

Example: Clear the legend entries (if any) and set up a new legend with 3 entries

 
.SetLegendHeight(1)

.SetFontStyle (22, 2, 12,rgb(0,0,255)) 'blue, italic and bold, 12 point font
.setlegendproperty("clearlegend", 0)
.setlegendproperty("entriesperrow", 3)
.SetLegendSymbology(1, 1, 1, 1) ' summary
.SetLegendText(1, "Summary", "")
.SetLegendText(2, "Planned", "")
.SetLegendText(3, "Critical", "")
.SetLegendSymbology(2, 3, 2, 3) 'planned
.SetLegendSymbology(3, 5, 3, 5) 'critical

 

The legend is stored with the template. The easiest way to set up a legend is using the GUI and then using a template with a program that manipulates the schedule.

 

 

 

Related Topics

  1. SetLegendHeight
  2. SetLegendProperty
  3. SetLegendSymbology
  4. GetLegendProperty

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2025 Automation Methods and Properties.  © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.