Class VirtualGridCellElement
Represents a cell element in RadVirtualGrid.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class VirtualGridCellElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<int>
Constructors
VirtualGridCellElement()
Initializes a new instance of the VirtualGridCellElement class.
Declaration
public VirtualGridCellElement()
Fields
IsCurrentColumnProperty
IsCurrentProperty
IsCurrentRowProperty
IsOddRowProperty
IsPinnedProperty
IsSelectedProperty
IsSortedProperty
ResizePointerOffset
Declaration
public const int ResizePointerOffset = 2
Field Value
System.Int32
|
Properties
CanEdit
Gets whether the cell can be edited.
Declaration
public virtual bool CanEdit { get; }
Property Value
System.Boolean
The can edit. |
ColumnIndex
Gets the index of the column.
Declaration
public int ColumnIndex { get; }
Property Value
System.Int32
The index of the column. |
Data
Gets the associated data.
Declaration
public int Data { get; }
Property Value
System.Int32
The data. |
Implements
Editor
Gets the editor.
Declaration
public virtual IInputEditor Editor { get; }
Property Value
IInputEditor
The editor. |
FieldName
Gets or sets the name of the field.
Declaration
public string FieldName { get; protected set; }
Property Value
System.String
The name of the field. |
FormatString
Gets or sets the format string.
Declaration
public string FormatString { get; protected set; }
Property Value
System.String
The format string. |
IsCurrent
Gets or sets whether the cell is current.
Declaration
public virtual bool IsCurrent { get; set; }
Property Value
System.Boolean
The is current. |
IsCurrentColumn
Gets or sets whether the column is current.
Declaration
public virtual bool IsCurrentColumn { get; set; }
Property Value
System.Boolean
The is current column. |
IsCurrentRow
Gets or sets whether the row is current.
Declaration
public virtual bool IsCurrentRow { get; set; }
Property Value
System.Boolean
The is current row. |
IsOddRow
Gets or sets whether the cell is in an odd row.
Declaration
public virtual bool IsOddRow { get; set; }
Property Value
System.Boolean
The is odd row. |
IsPinned
Gets or sets a value indicating whether the cell is pinned.
Declaration
public virtual bool IsPinned { get; set; }
Property Value
System.Boolean
|
IsSelected
Gets or sets whether the cell is selected.
Declaration
public virtual bool IsSelected { get; set; }
Property Value
System.Boolean
The is selected. |
IsSorted
Gets or sets whether the cell is sorted.
Declaration
public virtual bool IsSorted { get; set; }
Property Value
System.Boolean
The is sorted. |
RowElement
Gets the row element.
Declaration
public VirtualGridRowElement RowElement { get; }
Property Value
VirtualGridRowElement
The row element. |
RowIndex
Gets the index of the row.
Declaration
public int RowIndex { get; }
Property Value
System.Int32
The index of the row. |
TableElement
Gets the table element.
Declaration
public VirtualGridTableElement TableElement { get; }
Property Value
VirtualGridTableElement
The table element. |
Value
Gets or sets the value.
Declaration
public object Value { get; protected set; }
Property Value
System.Object
The value. |
ViewInfo
Gets the view info.
Declaration
public VirtualGridViewInfo ViewInfo { get; }
Property Value
VirtualGridViewInfo
The view info. |
Methods
AddEditor(IInputEditor)
Adds the editor.
Declaration
public virtual void AddEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor. |
ArrangeEditorElement(SizeF, RectangleF)
Arranges the editor element.
Declaration
protected virtual void ArrangeEditorElement(SizeF finalSize, RectangleF clientRect)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
System.Drawing.RectangleF
clientRect
The client rect. |
ArrangeOverride(SizeF)
Arranges the elements in the final size.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
Returns
System.Drawing.SizeF
|
Overrides
Attach(Int32, Object)
Attaches the specified data.
Declaration
public virtual void Attach(int data, object context)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
Implements
Attach(Int32, Object, Boolean)
Attaches the specified data.
Declaration
protected virtual void Attach(int data, object context, bool synchronize)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
System.Boolean
synchronize
The synchronize. |
Detach()
Detaches the cell element.
Declaration
public virtual void Detach()
Implements
GetEditorElement(IInputEditor)
Gets the editor element associated with this cell element.
Declaration
public RadItem GetEditorElement(IInputEditor editor)
Parameters
IInputEditor
editor
The editor which element we search. |
Returns
RadItem
An instance of RadItem that represents the editor element. Null if there is no editor element. |
Initialize(VirtualGridTableElement)
Initializes the specified owner.
Declaration
public virtual void Initialize(VirtualGridTableElement owner)
Parameters
VirtualGridTableElement
owner
The owner. |
IsCompatible(Int32, Object)
Determines whether element is compatible with the specified data.
Declaration
public virtual bool IsCompatible(int data, object context)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Implements
IsInResizeLocation(Point)
Determines whether point is in resize location.
Declaration
public virtual bool IsInResizeLocation(Point point)
Parameters
System.Drawing.Point
point
The point. |
Returns
System.Boolean
|
MeasureEditorElement(SizeF, Single)
Measures the editor element.
Declaration
protected virtual void MeasureEditorElement(SizeF availableSize, float width)
Parameters
System.Drawing.SizeF
availableSize
The available size. |
System.Single
width
The width of the element. |
MeasureOverride(SizeF)
Measures the element with the available size.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
Size of the available. |
Returns
System.Drawing.SizeF
|
Overrides
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Overrides
OnRowElementPropertyChanged(PropertyChangedEventArgs)
Raises the RowElementPropertyChanged event.
Declaration
protected virtual void OnRowElementPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
PaintElement(IGraphics, Single, SizeF)
Paints the element.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System.Single
angle
The angle. |
System.Drawing.SizeF
scale
The scale. |
Overrides
RemoveEditor(IInputEditor)
Removes the editor.
Declaration
public virtual void RemoveEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor. |
Synchronize()
Synchronizes this instance.
Declaration
public virtual void Synchronize()
Implements
Synchronize(Boolean)
Synchronizes the specified update content.
Declaration
public virtual void Synchronize(bool updateContent)
Parameters
System.Boolean
updateContent
Content of the update. |
Synchronize(VirtualGridRowElement)
Synchronizes the specified context.
Declaration
public virtual void Synchronize(VirtualGridRowElement context)
Parameters
VirtualGridRowElement
context
The context. |
UpdateInfo(VirtualGridCellValueNeededEventArgs)
Updates the info.
Declaration
protected virtual void UpdateInfo(VirtualGridCellValueNeededEventArgs args)
Parameters
VirtualGridCellValueNeededEventArgs
args
The VirtualGridCellValueNeededEventArgs instance containing the event data. |