Class GanttEventMarkerBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
GanttEventMarkerBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.Gantt
Assembly: Syncfusion.AspNetMvc.Gantt.dll
Syntax
public class GanttEventMarkerBuilder : ControlBuilder
Constructors
GanttEventMarkerBuilder()
Declaration
public GanttEventMarkerBuilder()
GanttEventMarkerBuilder(List<GanttEventMarker>)
Declaration
public GanttEventMarkerBuilder(List<GanttEventMarker> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<GanttEventMarker> | collection |
Methods
Add()
Declaration
public void Add()
CssClass(String)
Specifies a custom CSS class for the event marker. This can be used to apply custom styles to the line and label of the marker.
Declaration
public GanttEventMarkerBuilder CssClass(string cssClass)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cssClass |
Returns
| Type |
|---|
| GanttEventMarkerBuilder |
Day(String)
Specifies the date or day of the event marker.
The value can be a Date object or a date string.
Declaration
public GanttEventMarkerBuilder Day(string day)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | day |
Returns
| Type |
|---|
| GanttEventMarkerBuilder |
Label(String)
Specifies the label for the event marker.
Declaration
public GanttEventMarkerBuilder Label(string label)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | label |
Returns
| Type |
|---|
| GanttEventMarkerBuilder |
Top(String)
Vertical offset of the label from the timeline top. Must be in pixels (e.g., '50px'). Invalid values default to '50px'. Negative values are normalized to '50px'.
Declaration
public GanttEventMarkerBuilder Top(string top)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | top |
Returns
| Type |
|---|
| GanttEventMarkerBuilder |