BackgroundColor

Parent Previous Next

BackgroundColor

This property returns the color of the graphic object.


Function Definition:


string BackgroundColor {get; set;}


.     get: Permits the user to read the string value.

.     set: Permits the user to write the string value.



To configure this function, follow the steps below:


1.   In an object event, configure the BackgroundColor function: ChartObjectName.BackgroundColor;


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



Example Get:


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:


GraphicObject2.Text = GraphicObject1.BackgroundColor;


In this event, the GraphicObject2 will exhibit the string value indicating the value of the object background color.



Example Set:


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


GraphicObject1.BackgroundColor =  "Red";


In this event, the GraphicObject1 will changes background color of the object to red.



 

Note: This property exists only to the following objects:

.       Charts