GetLegendProperty

 

Purpose: Returns information about the legend .

 

Returns: Variant

 

Argument  

Type

Required

Purpose

1

Integer

Yes

Legend entry index (1-30 or 0 for general property)

       

2

String

Yes

Desired Property from list below

   

"Height"

Returns a Double height in inches (double)

"TextHeight"

Returns Integer font size (3-72)

"TotalNumberOfEntries"

Returns Integer total number of entries

"NumberOfEntriesPerLine"

Returns Integer number of entries per line

"SymType1"

Returns Integer 1 based index into toolbox

"SymType2"

Returns Integer 1 based index into toolbox

"ConnType"

Returns Integer 1 based index into toolbox

"VConnType"

Returns Integer 1 based index into toolbox

 

             

 

Example: Set the current date, set the color, and show it

With objMilestones

  .SetCurrentDate ( "10/13/2024" )

  .SetMiscProperty("CurrentDateLineColor", rgb(255,0,0)

  .SetMiscProperty("ShowCurrentDateLine", 1)

End With

 

 

 

Related Topics

  1. GetPageWidth
  2. SetLegendText
  3. SetLegendSymbology
  4. SetLegendProperty
  5. SetLegendHeight

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.