Public Member Functions | |
TreePanel (TreeDrawing tree) | |
Constructs a new TreePanel displaying the given TreeDrawing using the default font. | |
TreePanel (TreeDrawing tree, Font fnt) | |
Constructs a new TreePanel displaying the given TreeDrawing using the given Font. | |
Public Attributes | |
const string | StandardCharacter = "m" |
The character used as the standard for determining the character width. | |
Static Public Attributes | |
static new readonly Font | DefaultFont = new Font(FontFamily.GenericMonospace, 12.0F) |
The default Font. | |
Protected Member Functions | |
override void | OnPaint (PaintEventArgs ea) |
Paints this component on the graphics context of the given PaintEventArgs. |
TreePanel is a subclass of System.Windows.Forms.Panel. A TreePanel can be constructed quickly from a TreeDrawing. Because this component should not have children, no children are rendered, even if they are added. The colors of the drawing are determined by the underlying TreeDrawing, so the foreground color is unused.
TreePanel | ( | TreeDrawing | tree | ) |
Constructs a new TreePanel displaying the given TreeDrawing using the default font.
NullReferenceException | if tree is null . |
TreePanel | ( | TreeDrawing | tree, | |
Font | fnt | |||
) |
Constructs a new TreePanel displaying the given TreeDrawing using the given Font.
NullReferenceException | if either argument is null . |
override void OnPaint | ( | PaintEventArgs | ea | ) | [protected] |
Paints this component on the graphics context of the given PaintEventArgs.
Overrides the OnPaint method of System.Windows.Forms.Control.
ea | Encapsulates the graphics context and clip to use for painting. |
new readonly Font DefaultFont = new Font(FontFamily.GenericMonospace, 12.0F) [static] |
const string StandardCharacter = "m" |
The character used as the standard for determining the character width.