HidePen

Parent Previous Next

HidePen

This function hides or show a desired pen in the trend object.


Function Definition:


void HidePen(string tagName, bool isHide)


.      tagName: String parameter containing the name of the Tag in string format that represents the pen.

.      isHide: A Boolean value that represents if the pen is hidden or not.
       True - The pen is hidden .
       False - The pen is visible..


To configure this function, follow the steps below:


1.   In an object event, configure the HidePen function: TrendObjectName.HidePen("tagName", bool);


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



Example HidePen:


In the graphic document, the user has one Trend object (named as Trend1). In a Button object (named as Button1) the user configures the MouseUp event with the following event:


Trend1.HidePen("VT_Hist_Float[1]", true);


In this event, the Button will hide the pen associated with the tag "VT_Hist_Float[1]".




 

Note: This property exists only to the following objects:

.          Trend