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
public static RadProperty CurrentColumnProperty
public static RadProperty CurrentRowProperty
public static RadProperty HotTrackingProperty
public static RadProperty IsFirstCellProperty
public static RadProperty IsLastCellProperty
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.
protected virtual void ArrangeElement(RadElement element, SizeF finalSize, RectangleF clientRect)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
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:
Calculates the final desired size by combining the element's content size with child elements' size requirements.
protected override SizeF CalculateDesiredSize(SizeF availableSize, SizeF desiredSize, SizeF elementsDesiredSize)
The available space that a parent element can allocate.
desiredSizeSizeFThe desired size calculated from content and layout requirements.
elementsDesiredSizeSizeFThe desired size calculated from child elements.
Returns:The final desired size taking into account all size constraints.
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 desired size of the element by calculating the space needed for content, padding, and borders.
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()