Represents a data item used by RadGanttView to store links.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewLinkDataItem : IDataItem, INotifyPropertyChanged
Inheritance: objectGanttViewLinkDataItem
Implements:
Constructors
public GanttViewLinkDataItem()
Properties
Gets the data bound item of this link.
public object DataBoundItem { get; }
The data bound item.
Gets or sets the end item for this link.
public GanttViewDataItem EndItem { get; set; }
The end item.
Gets the RadGanttViewElement that owns this link.
public RadGanttViewElement GanttViewElement { get; }
The gantt view element.
Gets the points wehre this link will be drawn.
protected List<Point> Lines { get; }
The lines.
Gets or sets the type of this link.
public TasksLinkType LinkType { get; set; }
The type of the link.
Gets or sets whether the link is selected. Selecting it shows its endpoint handles unless the Gantt view is read-only; clearing the selection hides both handles.
public bool Selected { get; set; }
Gets or sets the start item for this link.
public GanttViewDataItem StartItem { get; set; }
The start item.
Methods
Hides the link handles on the end task.
public virtual void HideEndItemHandle()
Hides the handles on both endpoint tasks.
public virtual void HideItemsHandles()
Hides the link handles on the start task.
public virtual void HideStartItemHandle()
Raises the event.
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnNotifyPropertyChanged(string name)
The name of the property that changed.
Sets the data bound item for this link.
protected virtual void SetDataBoundItem(bool dataBinding, object value)
if set to true the method assumes the value is set through data binding.
The value.
Exceptions: InvalidOperationExceptionDataBoundItem can not be set explicitly in bound mode.
Shows the link handle on the end task; the visible side is determined by LinkType.
public virtual void ShowEndItemHandle()
Shows both endpoint handles when the link has an owner and the Gantt view is not read-only.
public virtual void ShowItemsHandles()
Shows the link handle on the start task; the visible side is determined by LinkType.
public virtual void ShowStartItemHandle()
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: