Represents an element that is used in a RadGanttView timeline.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewTimelineItemElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<GanttViewTimelineDataItem>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGanttViewTimelineItemElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the GanttViewTimelineItemElement class.
public GanttViewTimelineItemElement(GanttViewTimelineDataItem data, GanttViewGraphicalViewElement graphicalViewElement)
The data.
graphicalViewElementGanttViewGraphicalViewElementThe graphical view element.
Properties
Gets the bottom stack element.
public GanttViewTimelineItemBottomStackElement BottomElement { get; }
The bottom element.
Gets the data item for this element.
public GanttViewTimelineDataItem Data { get; }
The data.
Implements:
Gets the graphical view element that parents this element.
public GanttViewGraphicalViewElement GraphicalViewElement { get; }
The graphical view element.
Gets the top element.
public GanttViewTimelineItemTopElement TopElement { get; }
The top element.
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called when the displayed data is changed.
public void Attach(GanttViewTimelineDataItem data, object context)
The data.
contextobjectThe context.
Implements:
Calculates the items that will be displayed in the timeline.
protected virtual void CalculateItems()
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates the timeline item bottom stack element.
public virtual GanttViewTimelineItemBottomStackElement CreateTimelineItemBottomStackElement()
Creates the timeline item top element.
public virtual GanttViewTimelineItemTopElement CreateTimelineItemTopElement()
Detaches this instance.
public void Detach()
Implements:
Determines whether the specified data is compatible with this element.
public bool IsCompatible(GanttViewTimelineDataItem data, object context)
The data.
contextobjectThe context.
Returns:true if the specified data is compatible; otherwise, false.
Implements:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Synchronizes this instance with its data item.
public void Synchronize()
Implements: