alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class GanttEventMarker

    Configure event marker.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    GanttEventMarker
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.Gantt.dll
    Syntax
    public class GanttEventMarker : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    GanttEventMarker()

    Declaration
    public GanttEventMarker()

    Properties

    CssClass

    Gets or sets the custom CSS class of Gantt EventMarker to customize background and label.

    Declaration
    [Parameter]
    public string CssClass { get; set; }
    Property Value
    Type Description
    string

    A string value that represents the custom CSS class of the Gantt event marker.

    Remarks

    This property is used to define a custom CSS class for the Gantt event marker. The custom CSS class can be used to customize the background and label of the event marker. If the property is not set, the default CSS class will be used.

    Day

    Gets or sets the date of Gantt EventMarker.

    Declaration
    [Parameter]
    public DateTime Day { get; set; }
    Property Value
    Type Description
    DateTime

    A DateTime value that represents the date of the Gantt event marker.

    Remarks

    This property is used to define the date of the Gantt event marker. The event marker will be displayed on the specified date.

    Label

    Gets or sets label of Gantt EventMarker.

    Declaration
    [Parameter]
    public string Label { get; set; }
    Property Value
    Type Description
    string

    A string value that represents the label of the Gantt event marker.

    Remarks

    This property is used to define the label of the Gantt event marker. The label will be displayed on the event marker. If the property is not set, no label will be displayed.

    Top

    Gets or sets the vertical position, in pixels, of the Gantt Event Marker label.

    Declaration
    [Parameter]
    public string Top { get; set; }
    Property Value
    Type Description
    string

    A string value expressed as a CSS length in pixels (for example, "50px" or "100px"). Only positive pixel values are accepted. Any value that is not a positive pixel string (for example, negative values, "%", "rem", "em", "vh", unitless numbers, or Empty) falls back to the default vertical position of "50px".

    Remarks

    Use Top to control the vertical position of Event Marker labels when multiple Event Markers are rendered on the same Day, helping to prevent label overlap. If an invalid or negative value is specified, the Event Marker is rendered using the default vertical position of "50px".

    When multiple Event Markers share the same Day and the Top property is not specified for each marker, all labels are rendered using the default position of "50px". No automatic stacking, collision avoidance, or position calculation is applied, and Event Markers rendered at the same position may overlap.

    The Top property affects only the vertical placement of the Event Marker label. The Event Marker timeline indicator line continues to use its existing rendering logic and is not repositioned by Top. Labels rendered outside the visible timeline container are clipped by the container boundaries.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose(bool)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Boolean value to dispose the object.

    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Triggers during the initial rendering of the component.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Called by the framework when component parameters have been set. Executes logic that depends on the updated parameter values.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved