A utility class that helps in decorating the Lookup(Type)
method of IModelItem instances that are contained
in an IGraph which are managed by an ILookupDecorator.
Namespace: yWorks.yFiles.UI.ModelAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class ItemDecorator<TModelItem> where TModelItem : class, IModelItem |
| Visual Basic |
|---|
Public Class ItemDecorator(Of TModelItem As {Class, IModelItem}) |
Type Parameters
- TModelItem
- The type of the model item that can be decorated by instances of this type.
Remarks
This implementation serves as a factory for predefined LookupDecorator<(Of <(<'TDecoratedType, TInterface>)>)>
instances that are often useful for the IModelItem type in an IGraph instance
that is being edited in a GraphControl.
Note that the list of possible decorations that are available using this class
is not exhaustive in any way. This is merely a way to provide access to those
interfaces that are more commonly being decorated by the developer.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Model..::..ItemDecorator<(Of <(<'TModelItem>)>)>
yWorks.yFiles.UI.Model..::..BendDecorator
yWorks.yFiles.UI.Model..::..EdgeDecorator
yWorks.yFiles.UI.Model..::..LabelDecorator
yWorks.yFiles.UI.Model..::..NodeDecorator
yWorks.yFiles.UI.Model..::..PortDecorator
yWorks.yFiles.UI.Model..::..ItemDecorator<(Of <(<'TModelItem>)>)>
yWorks.yFiles.UI.Model..::..BendDecorator
yWorks.yFiles.UI.Model..::..EdgeDecorator
yWorks.yFiles.UI.Model..::..LabelDecorator
yWorks.yFiles.UI.Model..::..NodeDecorator
yWorks.yFiles.UI.Model..::..PortDecorator