Represents the element for a cell in a RadGanttView text part.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewTextViewCellElement : GanttViewVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<GanttViewTextViewColumn>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGanttViewVisualElementGanttViewTextViewCellElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the GanttViewTextViewCellElement class.
public GanttViewTextViewCellElement(GanttViewTextItemElement owner, GanttViewTextViewColumn column)
The owner.
columnGanttViewTextViewColumnThe column.
Fields
Identifies the state property that marks a cell in the current text-view column.
public static RadProperty CurrentColumnProperty
Identifies the state property bound to the current state of the row that owns the cell.
public static RadProperty CurrentRowProperty
Identifies the state property bound to whether the pointer is over the row that owns the cell.
public static RadProperty HotTrackingProperty
Identifies the state property that marks the first visible column cell in a row.
public static RadProperty IsFirstCellProperty
Identifies the state property that marks the last visible column cell in a row.
public static RadProperty IsLastCellProperty
Identifies the state property bound to the selected state of the row that owns the cell.
public static RadProperty SelectedProperty
Properties
Gets a value indicating whether this instance can update info.
protected virtual bool CanUpdateInfo { get; }
true if this instance can update info; otherwise, false.
Gets the column.
public GanttViewTextViewColumn Column { get; }
The column.
Gets the column of this cell.
public GanttViewTextViewColumn Data { get; }
The data.
Implements:
Gets the data item.
public GanttViewDataItem DataItem { get; }
The data item.
Gets the editor.
public IInputEditor Editor { get; }
The editor.
Gets the expander.
public GanttViewTextViewItemExpanderItem Expander { get; }
The expander.
Gets a value indicating whether this instance is first cell.
public virtual bool IsFirstCell { get; }
true if this instance is first cell; otherwise, false.
Gets a value indicating whether this instance is in edit mode.
public bool IsInEditMode { get; }
true if this instance is in edit mode; otherwise, false.
Gets a value indicating whether this instance is last cell.
public virtual bool IsLastCell { get; }
true if this instance is last cell; otherwise, false.
Gets the owner of this cell.
public GanttViewTextItemElement Owner { get; }
The owner.
Gets the self reference layout.
public GanttCellSelfReferenceLayout SelfReferenceLayout { get; }
The self reference layout.
Methods
Adds the editor.
Arranges a child using its fit-to-size mode, stretch settings, and desired size.
protected virtual void ArrangeElement(RadElement element, SizeF finalSize, RectangleF clientRect)
The child element to arrange.
finalSizeSizeFThe final size assigned to the cell.
clientRectRectangleFThe cell's client rectangle.
Arranges the self reference panel.
protected virtual void ArrangeSelfReferencePanel(SizeF finalSize, ref RectangleF clientRect)
The final size.
clientRectRectangleFThe client rect.
Attaches the specified data.
public virtual void Attach(GanttViewTextViewColumn data, object context)
The data.
contextobjectThe context.
Implements:
Includes the self-reference stack's width in the desired size when that layout is present.
protected override SizeF CalculateDesiredSize(SizeF availableSize, SizeF desiredSize, SizeF elementsDesiredSize)
The size available to the cell.
desiredSizeSizeFThe size calculated from the cell's own content.
elementsDesiredSizeSizeFThe combined desired size of the child elements.
Returns:The desired size of the cell, bounded by the available size when the self-reference layout is used.
Overrides:
Detaches this instance.
public virtual void Detach()
Implements:
Disposes the managed resources.
protected override void DisposeManagedResources()
Overrides:
Gets the editor element.
protected RadItem GetEditorElement(IValueEditor editor)
The editor.
Returns:Initializes the fields.
protected override void InitializeFields()
Overrides:
Determines whether the specified data is compatible.
public virtual bool IsCompatible(GanttViewTextViewColumn data, object context)
The data.
contextobjectThe context.
Returns:true if the specified data is compatible; otherwise, false.
Implements:
Measures the self-reference stack first and reserves its width when measuring the other children.
Removes the editor.
Synchronizes this instance.
public virtual void Synchronize()
Implements:
Updates the core.
protected virtual void UpdateCore()
Updates the info.
public virtual void UpdateInfo()