menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttSegmentData - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttSegmentData

    Represents a class that defines segment details for a Gantt task.

    Inheritance
    System.Object
    GanttSegmentData
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GanttSegmentData : Object

    Constructors

    GanttSegmentData()

    Declaration
    public GanttSegmentData()

    Properties

    Duration

    Gets the duration of the segment, represented in days, hours, or minutes based on the DurationUnit property.

    Declaration
    public double Duration { get; }
    Property Value
    Type Description
    System.Double

    A System.Double representing the duration of the segment, where the unit (day, hour, or minute) is determined by the DurationUnit property.

    EndDate

    Gets or sets the end date of the segment.

    Declaration
    public DateTime EndDate { get; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime representing the end date of the segment.

    Left

    Gets or sets the left offset of the taskbar representing the segment.

    Declaration
    public double Left { get; }
    Property Value
    Type Description
    System.Double

    A System.Double representing the left offset of the taskbar for the segment.

    OffsetDuration

    Gets or sets the duration offset between two segments.

    Declaration
    public double OffsetDuration { get; }
    Property Value
    Type Description
    System.Double

    A System.Double representing the duration offset between two segments.

    ProgressWidth

    Gets or sets the width of the progress indicator for the segment.

    Declaration
    public double ProgressWidth { get; }
    Property Value
    Type Description
    System.Double

    A System.Double representing the width of the progress indicator for the segment.

    SegmentIndex

    Gets or sets the index of the segment.

    Declaration
    public int SegmentIndex { get; }
    Property Value
    Type Description
    System.Int32

    An System.Int32 representing the index of the segment.

    ShowProgressBar

    Gets a value indicating whether the progress indicator is visible in the segment's taskbar.

    Declaration
    public bool ShowProgressBar { get; }
    Property Value
    Type Description
    System.Boolean

    A System.Boolean indicating whether the progress indicator is displayed in the segment's taskbar.

    Remarks

    Set this property to true in the taskbar template if you want to display a progress indicator in the taskbar template of the segment. Setting it to false will hide the progress indicator. This helps in showing progress indicator in the corresponding segment.

    StartDate

    Gets or sets the start date of the segment.

    Declaration
    public DateTime StartDate { get; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime representing the start date of the segment.

    Width

    Gets or sets the width of the taskbar representing the segment.

    Declaration
    public double Width { get; }
    Property Value
    Type Description
    System.Double

    A System.Double representing the width of the taskbar for the segment.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved