An implementation of ILabelModel that can be used to create custom label models out of existing ILabelModelParameter instances.

Namespace: yWorks.yFiles.UI.LabelModels
Assembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)

Syntax

C#
[TypeConverterAttribute(typeof(GenericConverter))]
public class GenericLabelModel : ILabelModel, 
	ILookup, ILabelModelParameterProvider, ILabelCandidateDescriptorProvider, IMarkupExtensionFactory
Visual Basic
<TypeConverterAttribute(GetType(GenericConverter))> _
Public Class GenericLabelModel _
	Implements ILabelModel, ILookup, ILabelModelParameterProvider, ILabelCandidateDescriptorProvider,  _
	IMarkupExtensionFactory

Remarks

This class holds a number of parameters and serves as a container for these parameters. Custom models can easily be created that way:
CopyC#
GenericLabelModel glm = new GenericLabelModel(InteriorLabelModel.Center);
glm.AddParameter(ExteriorLabelModel.North);
glm.AddParameter(ExteriorLabelModel.South);
glm.AddParameter(InteriorStretchLabelModel.East);
glm.AddParameter(InteriorStretchLabelModel.West);

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.LabelModels..::..GenericLabelModel

See Also