An abstract IPaintable implementation that can be used
to serve as a template for a certain type of rendering.
Namespace: yWorks.Canvas.DrawingAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
public abstract class TemplatePaintable : IPaintable |
| Visual Basic |
|---|
Public MustInherit Class TemplatePaintable _ Implements IPaintable |
Remarks
Subclasses need to implement the Paint(Graphics, IRenderContext) method
and adhere at least to the X and Y
properties that indicate the origin of the rendering.
Depending on the use-case, the Width and Height
property may also provide meaningful values, as well as the Content
property.
Inheritance Hierarchy
System..::..Object
yWorks.Canvas.Drawing..::..TemplatePaintable
yWorks.yFiles.UI.Drawing..::..SnapLineTemplatePaintable
yWorks.Canvas.Drawing..::..TemplatePaintable
yWorks.yFiles.UI.Drawing..::..SnapLineTemplatePaintable