Class TreeMapRecordDrawEventArgs
EventArgs which handles the drawing process of the TreeMap node
Inheritance
System.Object
System.EventArgs
TreeMapRecordDrawEventArgs
Namespace: FastReport.BG.TreeMap
Assembly: FastReport.BG.dll
Syntax
public class TreeMapRecordDrawEventArgs : EventArgs
Constructors
TreeMapRecordDrawEventArgs(Graphics, Rectangle, Style, HierarchicalRecord)
Constructs a new instance of TreeMapRecordDrawEventArgs
Declaration
public TreeMapRecordDrawEventArgs(Graphics g, Rectangle bounds, Style style, HierarchicalRecord record)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics context |
| System.Drawing.Rectangle | bounds | Bounding rectangle of the node |
| Style | style | Drawing style |
| HierarchicalRecord | record | Record which node represents |
Properties
Bounds
The bounding rectangle of the node
Declaration
public Rectangle Bounds { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Rectangle |
ClientRectangle
Bounding rectangle - spacing
Declaration
public Rectangle ClientRectangle { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Rectangle |
Graphics
The Graphics context
Declaration
public Graphics Graphics { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Graphics |
Record
Record which node represents
Declaration
public HierarchicalRecord Record { get; }
Property Value
| Type | Description |
|---|---|
| HierarchicalRecord |
Style
Drawing style
Declaration
public Style Style { get; }
Property Value
| Type | Description |
|---|---|
| Style |
Methods
DrawBackground()
Default draw backgound
Declaration
public void DrawBackground()
DrawBorder()
Default draw border
Declaration
public void DrawBorder()
DrawText()
Default draw text
Declaration
public void DrawText()
DrawText(StringFormat)
Draw text with given StringFormat
Declaration
public void DrawText(StringFormat sf)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.StringFormat | sf | StringFormat to use for text draw |