Using the Process Analyst > Process Analyst for Developers > Automation Model > IProcessAnalyst.SubscribeForPropertyChange [Method]

IProcessAnalyst.SubscribeForPropertyChange [Method]

Use this method to receive notifications of when a particular property changes. Notifications will be sent via the PropertyChanged event.

Defined As

Parameters

interfaceName

[in] Specify the name of the interface that the property you want notifications for is defined on.

propertyName

[in] This is the name of the property you want to receive notifications for.

Execution Result

If the function succeeds, the return value will be Success. If the interfaceName or propertyName is a bad string, the return value will be InvalidArgument. If any other problem occurs, the return value will be GeneralFailure.

Remarks

The following set of properties are supported:

Interface name

Property Name

IProcessAnalyst

AutoScroll

IProcessAnalyst

BackgroundColor

IProcessAnalyst

ContextMenu

IProcessAnalyst

LockedPens

IProcessAnalyst

DisplayRefreshRate

IProcessAnalyst

DataRequestRate

IProcessAnalyst

ZoomMode

See Also

IProcessAnalyst.UnsubscribePropertyChange [Method], PropertyChanged [Event]

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".

[VBA]

Sub Example()
myPage_AN35.SubscribeForPropertyChange "IProcessAnalyst", "ZoomMode"
End Sub

[Cicode]

Sub Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst,"SubscribeForPropertyChange", "IProcessAnalyst", "ZoomMode");
End Sub