NetDiagram Programmer's Guide
DiagramItem.Font Property
See Also

Gets or sets the font used to render the item's text.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming


C#  Copy Code

public virtual Font Font { get; set; }

Visual Basic  Copy Code

Public Overridable Property Font As Font

 Property Value

An instance of the System.Drawing.Font class. The default value is null.


Items derived from DiagramItem use this font to draw their text. Tables for example render their captions and text in cells using this font. Initially the font is set to the value of Font.

When set to null, the font object used to render the item's text is derived from the item's Style, or from the diagram's current Theme.

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming Namespace
EffectiveFont Property