A simple mutable implementation of the ILabel
interface that can be used stand-alone.
Namespace: yWorks.yFiles.UI.ModelAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class SimpleLabel : AbstractModelItem, ILabel, IModelItem, ILookup, ITagOwner |
| Visual Basic |
|---|
Public Class SimpleLabel _ Inherits AbstractModelItem _ Implements ILabel, IModelItem, ILookup, ITagOwner |
Remarks
Note that this class is not the one used as the default implementation
of a DefaultGraph's ILabels and casting an ILabel
to this class will most likely fail.
Instances of this class can be used without an accompanying graph instance. All of the
properties are mutable. An example of a possible use case would be the rendering of a label
into a graphics context: Simply instantiate a SimpleLabel, associate a style with it
and use the style's renderer instance to obtain a paintable for the label.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Model..::..AbstractModelItem
yWorks.yFiles.UI.Model..::..SimpleLabel
yWorks.yFiles.UI.Model..::..AbstractModelItem
yWorks.yFiles.UI.Model..::..SimpleLabel