Class GanttRecordDrawEventArgs
EventArgs which handles the drawing process of the Gantt node
Inheritance
System.Object
System.EventArgs
GanttRecordDrawEventArgs
Namespace: FastReport.BG.Gantt
Assembly: FastReport.BG.dll
Syntax
public class GanttRecordDrawEventArgs : EventArgs
Constructors
GanttRecordDrawEventArgs(Graphics, GanttGeometry, Style, Style, GanttRecord)
Constructs a new instance of GanttRecordDrawEventArgs
Declaration
public GanttRecordDrawEventArgs(Graphics g, GanttGeometry geometry, Style style, Style intervalStyle, GanttRecord record)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics context |
| GanttGeometry | geometry | GanttGeometry structure |
| Style | style | Drawing style |
| Style | intervalStyle | |
| GanttRecord | record | Record which node represents |
Properties
Bottom
Declaration
public int Bottom { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Bounds
The bounding rectangle of the node
Declaration
public Rectangle Bounds { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Rectangle |
DrawColor
Draw color.
Declaration
public Color DrawColor { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
EndDate
End date.
Declaration
public DateTime EndDate { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Graphics
The Graphics context
Declaration
public Graphics Graphics { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Graphics |
Height
Declaration
public int Height { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
IntervalStyle
Interval style.
Declaration
public Style IntervalStyle { get; }
Property Value
| Type | Description |
|---|---|
| Style |
Left
Declaration
public int Left { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Record
Record which node represents
Declaration
public GanttRecord Record { get; }
Property Value
| Type | Description |
|---|---|
| GanttRecord |
Right
Declaration
public int Right { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
StartDate
Start date.
Declaration
public DateTime StartDate { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Style
Drawing style
Declaration
public Style Style { get; }
Property Value
| Type | Description |
|---|---|
| Style |
TaskName
Task name.
Declaration
public string TaskName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TextRectangle
Bounding rectangle - spacing
Declaration
public Rectangle TextRectangle { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Rectangle |
Top
Declaration
public int Top { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Width
Declaration
public int Width { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
X
Declaration
public int X { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Y
Declaration
public int Y { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
DrawBackground()
Default draw backgound
Declaration
public void DrawBackground()
DrawBorder()
Default draw border
Declaration
public void DrawBorder()
DrawRecordInterval()
Draw record interval rectangle
Declaration
public void DrawRecordInterval()
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 |