Provides access to the dummy state of a port for a specific view.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
[NotNullAttribute] public virtual IPort GetViewState( DummyNodePortId nodePortId )
Visual Basic
<NotNullAttribute> _ Public Overridable Function GetViewState ( _ nodePortId As DummyNodePortId _ ) As IPort

Parameters

nodePortId
Type: yWorks.yFiles.UI.Model..::..DummyNodePortId
The id for which the state should be returned.

Return Value

A state holder implementation of a port, which is not part of any graph and can only be modified through the GetChangeDummyAppearanceCallback(DummyNodeId) method.

Remarks

This method can be used to query the state of a port at a collapsed node in a specific view, even if there is no such view currently present or the port's node is in fact expanded currently in that view. Note that the instance returned is neither part of the MasterGraph nor part of any of the managed views. It serves as a data holder object only and the only way to modify it is using the callback provided by the GetChangeDummyAppearanceCallback(DummyNodeId) method or directly working on the dummy port in a IFoldedGraph view.

See Also