ClassGanttViewTimelineItemElement
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
GanttViewTimelineItemElement(GanttViewTimelineDataItem, GanttViewGraphicalViewElement)
Initializes a new instance of the GanttViewTimelineItemElement class.
Declaration
public GanttViewTimelineItemElement(GanttViewTimelineDataItem data, GanttViewGraphicalViewElement graphicalViewElement)
Parameters
data
The data.
graphicalViewElement
The graphical view element.
Properties
BottomElement
Gets the bottom stack element.
Declaration
public GanttViewTimelineItemBottomStackElement BottomElement { get; }
Property Value
GanttViewTimelineItemBottomStackElement
The bottom element.
Data
Gets the data item for this element.
Declaration
public GanttViewTimelineDataItem Data { get; }
Property Value
The data.
Implements
GraphicalViewElement
Gets the graphical view element that parents this element.
Declaration
public GanttViewGraphicalViewElement GraphicalViewElement { get; }
Property Value
The graphical view element.
TopElement
Gets the top element.
Declaration
public GanttViewTimelineItemTopElement TopElement { get; }
Property Value
GanttViewTimelineItemTopElement
The top element.
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Attach(GanttViewTimelineDataItem, object)
Called when the displayed data is changed.
Declaration
public void Attach(GanttViewTimelineDataItem data, object context)
Parameters
data
The data.
context
The context.
Implements
CalculateItems()
Calculates the items that will be displayed in the timeline.
Declaration
protected virtual void CalculateItems()
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateTimelineItemBottomStackElement()
Creates the timeline item bottom stack element.
Declaration
public virtual GanttViewTimelineItemBottomStackElement CreateTimelineItemBottomStackElement()
Returns
CreateTimelineItemTopElement()
Creates the timeline item top element.
Declaration
public virtual GanttViewTimelineItemTopElement CreateTimelineItemTopElement()
Returns
IsCompatible(GanttViewTimelineDataItem, object)
Determines whether the specified data is compatible with this element.
Declaration
public bool IsCompatible(GanttViewTimelineDataItem data, object context)
Parameters
data
The data.
context
The context.
Returns
true if the specified data is compatible; otherwise, false.
Implements
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Synchronize()
Synchronizes this instance with its data item.
Declaration
public void Synchronize()
Implements