Struct GanttGeometry
Structure which groups geometry properties to build a Gantt node
Namespace: FastReport.BG.Gantt
Assembly: FastReport.BG.dll
Syntax
public struct GanttGeometry
Constructors
GanttGeometry(Distance, Boolean, TextPosition, Single, SizeF, DateTime, Single, Rectangle, Int32)
Create a new instance of GanttGeometry.
Declaration
public GanttGeometry(Distance distance, bool textOnIntervals, TextPosition textPosition, float oneDayWidth, SizeF actvivitiesSize, DateTime minDate, float headerHeight, Rectangle bounds, int maxNodeNameWidth)
Parameters
Type | Name | Description |
---|---|---|
Distance | distance | Value of Distance |
System.Boolean | textOnIntervals | Value of TextOnIntervals |
TextPosition | textPosition | Value of TextPosition |
System.Single | oneDayWidth | Value of OneDayWidth |
System.Drawing.SizeF | actvivitiesSize | Value of OneDayWidth |
System.DateTime | minDate | Value of MinDate |
System.Single | headerHeight | Value of HeaderHeight |
System.Drawing.Rectangle | bounds | Value of Bounds |
System.Int32 | maxNodeNameWidth | Value of MaxNodeNameWidth |
GanttGeometry(GanttGeometry, Rectangle)
Create a new instance of GanttGeometry.
Declaration
public GanttGeometry(GanttGeometry geometry, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
GanttGeometry | geometry | Instance of GanttGeometry |
System.Drawing.Rectangle | bounds | Bounds |
Properties
ActvivitiesSize
Size of one recording area on the left side of the chart
Declaration
public SizeF ActvivitiesSize { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.SizeF |
Bounds
Gets or sets the size and location (in pixels) of the control including its non-client elements, relative to its parent control.
Declaration
public Rectangle Bounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Distance
Determines the scale of dates in titles.
Declaration
public Distance Distance { get; set; }
Property Value
Type | Description |
---|---|
Distance |
HeaderHeight
Height of gantt header
Declaration
public float HeaderHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxNodeNameWidth
Maximum width of the block with the name of the node
Declaration
public int MaxNodeNameWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MinDate
Minimum date in records
Declaration
public DateTime MinDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
OneDayWidth
Width of one day on graphics
Declaration
public float OneDayWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
TextOnIntervals
Value indicating whether to display the title of the task in the interval area.
Declaration
public bool TextOnIntervals { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TextPosition
Specifies the position of the text relative to the spacing of the rectangle.
Declaration
public TextPosition TextPosition { get; set; }
Property Value
Type | Description |
---|---|
TextPosition |