SetLegendHeight

 

Purpose: Set the height of the legend

 

Argument  

Type

Required

Purpose

1

Variant

Yes

Height of the legend.

 

  

 

             

 

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. GetLegendProperty
  2. SetLegendProperty
  3. SetLegendSymbology
  4. SetLegendText

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.