Class GanttBarStyle
Namespace: Aspose.Tasks.Visualization
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a bar style used by MSP in Gantt Chart view.
public class GanttBarStyle
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
GanttBarStyle()
Initializes a new instance of the Aspose.Tasks.Visualization.GanttBarStyle class.
public GanttBarStyle()
Properties
BottomBarTextConverter
Gets or sets user-defined converter to get text to render on the bottom of the task’s bar. Overrides the value of Aspose.Tasks.Visualization.GanttBarStyle.BottomField property.
public TaskBarTextConverter BottomBarTextConverter { get; set; }
Property Value
Remarks
Is not persisted to MPP format.
BottomField
Gets or sets data to be displayed on the bottom of the bar. Aspose.Tasks.Field.
public Field BottomField { get; set; }
Property Value
EndShape
Gets or sets an end shape of the bar.
public GanttBarEndShape EndShape { get; set; }
Property Value
EndShapeColor
Gets or sets a color of the end shape.
public Color EndShapeColor { get; set; }
Property Value
EndShapeType
Gets or sets a type of the end shape. Aspose.Tasks.Visualization.GanttBarType.
public GanttBarType EndShapeType { get; set; }
Property Value
From
Gets or sets a start point position of the gantt bar. Aspose.Tasks.Field.
public Field From { get; set; }
Property Value
InsideBarTextConverter
Gets or sets user-defined converter to get text to render inside of the task’s bar. Overrides the value of Aspose.Tasks.Visualization.GanttBarStyle.InsideField property.
public TaskBarTextConverter InsideBarTextConverter { get; set; }
Property Value
Remarks
Is not persisted to MPP format.
InsideField
Gets or sets data to be displayed inside of the bar. Aspose.Tasks.Field.
public Field InsideField { get; set; }
Property Value
LeftBarTextConverter
Gets or sets user-defined converter to get text to render on the left of the task’s bar. Overrides the value of Aspose.Tasks.Visualization.GanttBarStyle.LeftField property.
public TaskBarTextConverter LeftBarTextConverter { get; set; }
Property Value
LeftField
Gets or sets data to be displayed on the left of the bar. Aspose.Tasks.Field.
public Field LeftField { get; set; }
Property Value
MiddleFillPattern
Gets or sets a fill pattern of the gantt bar.
public GanttBarFillPattern MiddleFillPattern { get; set; }
Property Value
MiddleShape
Gets or sets a middle shape of the bar.
public GanttBarMiddleShape MiddleShape { get; set; }
Property Value
MiddleShapeColor
Gets or sets a color of the middle shape.
public Color MiddleShapeColor { get; set; }
Property Value
Name
Gets or sets a name of the style.
public string Name { get; set; }
Property Value
ParentStyle
Gets or sets parent (or common) style for custom task-specific style.
public GanttBarStyle ParentStyle { get; set; }
Property Value
Remarks
Task can have multiple custom styles with different parent styles. For example consider task having custom style with “Critical” parent style and another style with “Normal” parent style. Simply put, if task is critical, the first style is applied. If task becomes non-critical, the second style is applied (this logic is inherited from Microsoft Project Professional).
RightBarTextConverter
Gets or sets user-defined converter to get text to render on the right of the task’s bar. Overrides the value of Aspose.Tasks.Visualization.GanttBarStyle.RightField property.
public TaskBarTextConverter RightBarTextConverter { get; set; }
Property Value
Remarks
Is not persisted to MPP format.
RightField
Gets or sets data to be displayed on the right of the bar. Aspose.Tasks.Field.
public Field RightField { get; set; }
Property Value
Row
Gets or sets a row number.
public int Row { get; set; }
Property Value
ShowForCategories
Gets or sets task categories for which the style is applied. Is applicable for parent (or common) styles of bars in Gantt chart (see Aspose.Tasks.GanttChartView.BarStyles).
public IList<ganttbarshowfor> ShowForCategories { get; set; }
Property Value
IList<GanttBarShowFor>
ShowForTaskUid
Gets or sets Unique Id of a task for which the style is applied. Is applicable for task-specific styles of bars in Gantt chart (see Aspose.Tasks.GanttChartView.CustomBarStyles).
public int? ShowForTaskUid { get; set; }
Property Value
int?
StartShape
Gets or sets a start shape of the bar.
public GanttBarEndShape StartShape { get; set; }
Property Value
StartShapeColor
Gets or sets a color of the start shape.
public Color StartShapeColor { get; set; }
Property Value
StartShapeType
Gets or sets a type of the start shape.
public GanttBarType StartShapeType { get; set; }
Property Value
To
Gets or sets a finish point position of the gantt bar.
public Field To { get; set; }
Property Value
TopBarTextConverter
Gets or sets user-defined converter to get text to render on the top of the task’s bar. Overrides the value of Aspose.Tasks.Visualization.GanttBarStyle.TopField property.
public TaskBarTextConverter TopBarTextConverter { get; set; }
Property Value
Remarks
Is not persisted to MPP format.
TopField
Gets or sets data to be displayed on the top of the bar.
public Field TopField { get; set; }