UpdateLegendSize

Parent Previous Next

UpdateLegendSize

This function updates the Chart's legend size.


Function Definition:


void UpdateLegendSize(double width, double height)


.      width: Represents the width of the Legend.

.      height: Represents the height of the Legend.


To configure this function, follow the steps below:


1.   In an object event, configure the UpdateLegendSize function: ChartObjectName.UpdateLegendSize(width, height);


2.    During the execution of RunTime, run the configured event.



Example UpdateLegendSize:


In the graphic document, the user has one Chart object (named as GraphicObject1). In a Text-Box object (named as GraphicObject2) the user configures the MouseUp event with the following event:


GraphicObject1.UpdateLegendSize(130.5,30);


In this event, the GraphicObject2 will sets the object legend size width to 130.5 and height to 30.



 

Note: This property exists only to the following objects:

.       Charts