Class GanttBarStyle

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

objectGanttBarStyle

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

TaskBarTextConverter

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

Field

EndShape

Gets or sets an end shape of the bar.

public GanttBarEndShape EndShape { get; set; }

Property Value

GanttBarEndShape

EndShapeColor

Gets or sets a color of the end shape.

public Color EndShapeColor { get; set; }

Property Value

Color

EndShapeType

Gets or sets a type of the end shape. Aspose.Tasks.Visualization.GanttBarType.

public GanttBarType EndShapeType { get; set; }

Property Value

GanttBarType

From

Gets or sets a start point position of the gantt bar. Aspose.Tasks.Field.

public Field From { get; set; }

Property Value

Field

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

TaskBarTextConverter

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

Field

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. Is not persisted to MPP format.

public TaskBarTextConverter LeftBarTextConverter { get; set; }

Property Value

TaskBarTextConverter

LeftField

Gets or sets data to be displayed on the left of the bar. Aspose.Tasks.Field.

public Field LeftField { get; set; }

Property Value

Field

MiddleFillPattern

Gets or sets a fill pattern of the gantt bar.

public GanttBarFillPattern MiddleFillPattern { get; set; }

Property Value

GanttBarFillPattern

MiddleShape

Gets or sets a middle shape of the bar.

public GanttBarMiddleShape MiddleShape { get; set; }

Property Value

GanttBarMiddleShape

MiddleShapeColor

Gets or sets a color of the middle shape.

public Color MiddleShapeColor { get; set; }

Property Value

Color

Name

Gets or sets a name of the style.

public string Name { get; set; }

Property Value

string

ParentStyle

Gets or sets parent (or common) style for custom task-specific style.

public GanttBarStyle ParentStyle { get; set; }

Property Value

GanttBarStyle

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

TaskBarTextConverter

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

Field

Row

Gets or sets a row number. Can be from 1 to 4 (1 is default value).

public int Row { get; set; }

Property Value

int

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&gt;

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

GanttBarEndShape

StartShapeColor

Gets or sets a color of the start shape.

public Color StartShapeColor { get; set; }

Property Value

Color

StartShapeType

Gets or sets a type of the start shape.

public GanttBarType StartShapeType { get; set; }

Property Value

GanttBarType

To

Gets or sets a finish point position of the gantt bar.

public Field To { get; set; }

Property Value

Field

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

TaskBarTextConverter

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; }

Property Value

Field