DisplayState

ITcEventView

This property enables or disables the column that displays the Event State or returns the state.

 

Property get

HRESULT get_DisplayState([out, retval] VARIANT_BOOL*pVal);

Parameters

pVal

[out, retval] pointer to VARIANT_BOOL variable that receives the visible state of the list view Event State. It's visible if the variable is VARINAT_TRUE (TRUE) and invisible if the variable is VARIANT_FALSE (FALSE). 

Return Values

S_OK

Function was successfully called

E_POINTER

pVal was no valid pointer

 

Property let

HRESULT put_DisplayState([in] VARIANT_BOOL newVal);

Parameters

newVal

[in] A variable that sets the visible state of the list view column Event State. It's visible if the variable is VARINAT_TRUE (TRUE) and invisible if the variable is VARIANT_FALSE (FALSE). 

Return Values

S_OK

Function was successfully called

 

Visual Basic sample code

Option Explicit

' add the Beckhoff TcEvent View Library to the components
' place a TcEventView on the form, and assign the name TcEventView1

Private Sub Form_Load()
  TcEventView1.DisplayState = True
End Sub