Class BaseListViewElement
Represents a base class for Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class BaseListViewElement : VirtualizedScrollPanel<ListViewDataItem, BaseListViewVisualItem>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
BaseListViewElement(RadListViewElement)
Declaration
public BaseListViewElement(RadListViewElement owner)
Parameters
Rad
|
Fields
AllowArbitraryItemHeightProperty
AllowArbitraryItemWidthProperty
anchor
beginEditTimer
Declaration
protected Timer beginEditTimer
Field Value
System.
|
disableEditOnMouseUp
Declaration
protected bool disableEditOnMouseUp
Field Value
System.
|
disableGroupSelectOnMouseUp
Declaration
protected bool disableGroupSelectOnMouseUp
Field Value
System.
|
DragHintProperty
endPoint
Declaration
protected Point endPoint
Field Value
System.
|
FullRowSelectProperty
GroupIndentProperty
GroupItemSizeProperty
groupSelectionTimer
Declaration
protected Timer groupSelectionTimer
Field Value
System.
|
isLassoSelection
Declaration
protected bool isLassoSelection
Field Value
System.
|
ItemSizeProperty
lassoInitialSelection
Declaration
protected Dictionary<ListViewDataItem, bool> lassoInitialSelection
Field Value
System.
|
lastClickedItem
lastModifierKeys
Declaration
protected Keys lastModifierKeys
Field Value
System.
|
pointerOffset
Declaration
protected Point pointerOffset
Field Value
System.
|
pressedItem
SelectionRectangleBorderColorProperty
SelectionRectangleColorProperty
startPoint
Declaration
protected Point startPoint
Field Value
System.
|
Properties
AllowArbitraryItemHeight
Gets or sets a value indicating whether the items can have different height.
Declaration
public virtual bool AllowArbitraryItemHeight { get; set; }
Property Value
System.
|
AllowArbitraryItemWidth
Gets or sets a value indicating whether the items can have different width.
Declaration
public virtual bool AllowArbitraryItemWidth { get; set; }
Property Value
System.
|
DragHint
Gets or sets the Rad
Declaration
[VsbBrowsable(true)]
public RadImageShape DragHint { get; set; }
Property Value
FindStringComparer
Gets or sets an object that implements IFindStringComparer. The value of this property is used in the keyboard search functionality.
Declaration
public IFindStringComparer FindStringComparer { get; set; }
Property Value
FullRowSelect
Gets or sets a value indicating whether the full row should be selected.
Declaration
public virtual bool FullRowSelect { get; set; }
Property Value
System.
|
GroupIndent
Gets or sets the indent of the items when they are displayed in a group.
Declaration
public virtual int GroupIndent { get; set; }
Property Value
System.
|
GroupItemSize
Gets or sets the default group item size.
Declaration
public Size GroupItemSize { get; set; }
Property Value
System.
|
HorizontalScrollState
Gets or sets the display state of the horizontal scrollbar.
Declaration
public ScrollState HorizontalScrollState { get; set; }
Property Value
ItemSize
Gets or sets the default item size.
Declaration
public virtual Size ItemSize { get; set; }
Property Value
System.
|
Orientation
Gets or sets the orientation of the view element.
Declaration
public override Orientation Orientation { get; set; }
Property Value
System.
|
Overrides
Owner
Gets the Rad
Declaration
public virtual RadListViewElement Owner { get; }
Property Value
ScrollBehavior
Gets the Scroll
Declaration
public ScrollServiceBehavior ScrollBehavior { get; }
Property Value
SelectGroupItems
Determines if the group items can be selected.
Declaration
public bool SelectGroupItems { get; set; }
Property Value
System.
|
SelectionRectangleBorderColor
Gets or sets the border color of the lasso selection rectangle.
Declaration
[VsbBrowsable(true)]
public Color SelectionRectangleBorderColor { get; set; }
Property Value
System.
|
SelectionRectangleColor
Gets or sets the fill color of the lasso selection rectangle.
Declaration
[VsbBrowsable(true)]
public Color SelectionRectangleColor { get; set; }
Property Value
System.
|
VerticalScrollState
Gets or sets the display state of the vertical scrollbar.
Declaration
public ScrollState VerticalScrollState { get; set; }
Property Value
Methods
BeginLassoSelection()
Begins the lasso selection.
Declaration
protected virtual void BeginLassoSelection()
ClearSelection()
Clears the selection.
Declaration
public void ClearSelection()
CreateElementProvider()
Declaration
protected override IVirtualizedElementProvider<ListViewDataItem> CreateElementProvider()
Returns
Overrides
CreateItemTraverser(IList<ListViewDataItem>)
Declaration
protected override ITraverser<ListViewDataItem> CreateItemTraverser(IList<ListViewDataItem> items)
Parameters
System.
|
Returns
Overrides
CreateViewElement()
Declaration
protected override VirtualizedStackContainer<ListViewDataItem> CreateViewElement()
Returns
Overrides
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
EndLassoSelection()
Ends the lasso selection.
Declaration
protected virtual void EndLassoSelection()
EnsureItemVisible(ListViewDataItem)
Ensures that a given List
Declaration
public virtual void EnsureItemVisible(ListViewDataItem item)
Parameters
List The List |
EnsureItemVisible(ListViewDataItem, Boolean)
Ensures that a given List
Declaration
public virtual void EnsureItemVisible(ListViewDataItem item, bool ensureHorizontally)
Parameters
List The List |
System. Indicates if the view should be scrolled horizontally. |
EnsureItemVisibleHorizontal(ListViewDataItem)
Ensures that a given List
Declaration
protected virtual void EnsureItemVisibleHorizontal(ListViewDataItem item)
Parameters
List The item to ensure visibility of. |
EnsureItemVisibleVertical(ListViewDataItem)
Ensures that a given List
Declaration
protected virtual void EnsureItemVisibleVertical(ListViewDataItem item)
Parameters
List The item to ensure visibility of. |
EnsureItemVisibleVerticalCore(ListViewDataItem)
Ensures that a given List
Declaration
protected virtual void EnsureItemVisibleVerticalCore(ListViewDataItem item)
Parameters
List The item to ensure visibility of. |
GetDragHintLocation(BaseListViewVisualItem, Point)
Gets the drag hint location according to the specified item.
Declaration
public virtual Point GetDragHintLocation(BaseListViewVisualItem visualItem, Point mouseLocation)
Parameters
Base The drop target item. |
System. The mouse location in client coordinates. |
Returns
System. The location of the drag hint. |
GetDragHintSize(ISupportDrop)
Gets the size of the drag hint according to the speficied target.
Declaration
public virtual Size GetDragHintSize(ISupportDrop target)
Parameters
ISupport The drop target. |
Returns
System. The size of the drag hint. |
GetFirstMatch(String)
This method traverses through the items in the control and fills a queue with these items that start with the searchCriteria
.
Declaration
protected virtual ListViewDataItem GetFirstMatch(string searchCriteria)
Parameters
System.
|
Returns
GetItemAt(Point)
Gets the List
Declaration
public ListViewDataItem GetItemAt(Point location)
Parameters
System. The location. |
Returns
GetItemIndex(ListViewDataItem)
Declaration
protected int GetItemIndex(ListViewDataItem item)
Parameters
List
|
Returns
System.
|
GetNextItem(ListViewDataItem)
Gets the next visible item of a given List
Declaration
protected virtual ListViewDataItem GetNextItem(ListViewDataItem currentItem)
Parameters
List The current item. |
Returns
List The next item. |
GetPreviousItem(ListViewDataItem)
Gets the previous visible item of a given List
Declaration
protected virtual ListViewDataItem GetPreviousItem(ListViewDataItem currentItem)
Parameters
List The current item. |
Returns
List The previous item. |
GetVisualItemAt(Point)
Gets the Base
Declaration
public virtual BaseListViewVisualItem GetVisualItemAt(Point location)
Parameters
System. The location. |
Returns
HandleDeleteKey(KeyEventArgs)
Handles a press of the Delete key.
Declaration
protected virtual void HandleDeleteKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleDownKey(KeyEventArgs)
Handles a press of the Down key.
Declaration
protected virtual void HandleDownKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleEndKey(KeyEventArgs)
Handles a press of the End key.
Declaration
protected virtual void HandleEndKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleEscapeKey(KeyEventArgs)
Handles a press of the Escape key.
Declaration
protected virtual void HandleEscapeKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleF2Key(KeyEventArgs)
Handles a press of the F2 key.
Declaration
protected virtual void HandleF2Key(KeyEventArgs e)
Parameters
System. The event args. |
HandleHomeKey(KeyEventArgs)
Handles a press of the Home key.
Declaration
protected virtual void HandleHomeKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleLeftKey(KeyEventArgs)
Handles a press of the Left key.
Declaration
protected virtual void HandleLeftKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleNavigation(Char)
HandlePageDownKey(KeyEventArgs)
Handles a press of the PageDown key.
Declaration
protected virtual void HandlePageDownKey(KeyEventArgs e)
Parameters
System. The event args. |
HandlePageUpKey(KeyEventArgs)
Handles a press of the PageUp key.
Declaration
protected virtual void HandlePageUpKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleRightKey(KeyEventArgs)
Handles a press of the Right key.
Declaration
protected virtual void HandleRightKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleSpaceKey(KeyEventArgs)
Handles a press of the Space key.
Declaration
protected virtual void HandleSpaceKey(KeyEventArgs e)
Parameters
System. The event args. |
HandleUpKey(KeyEventArgs)
Handles a press of the Up key.
Declaration
protected virtual void HandleUpKey(KeyEventArgs e)
Parameters
System. The event args. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
OnLassoTimerTick(Object, EventArgs)
Declaration
protected virtual void OnLassoTimerTick(object sender, EventArgs e)
Parameters
System.
|
System.
|
OnOrientationChanged()
Called when the orientation of the view has changed.
Declaration
protected virtual void OnOrientationChanged()
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnScrollerUpdated()
Declaration
protected virtual void OnScrollerUpdated()
PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
IGraphics
screenRadGraphics
|
System.
|
System.
|
System.
|
System.
|
Overrides
ProcessDragOver(Point, ISupportDrag)
Declaration
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
Parameters
System.
|
ISupport
|
Returns
System.
|
Overrides
ProcessItemLassoSelection(ListViewDataItem, Boolean)
Declaration
protected virtual void ProcessItemLassoSelection(ListViewDataItem currentItem, bool isIntersecting)
Parameters
List
|
System.
|
ProcessKeyDown(KeyEventArgs)
Processes the KeyDown event.
Declaration
protected virtual bool ProcessKeyDown(KeyEventArgs e)
Parameters
System. The event args. |
Returns
System. true if the processing of the event should be stopped, false otherwise. |
ProcessKeyPress(KeyPressEventArgs)
Declaration
protected virtual bool ProcessKeyPress(KeyPressEventArgs e)
Parameters
System.
|
Returns
System.
|
ProcessLassoSelection()
Selects all items that are whitin the lasso rectangle.
Declaration
protected void ProcessLassoSelection()
ProcessLassoSelection(Rectangle)
Selects all items that are whitin the specified rectangle.
Declaration
protected virtual void ProcessLassoSelection(Rectangle selectionRect)
Parameters
System.
|
ProcessMouseDown(MouseEventArgs)
Processes the MouseDown event.
Declaration
protected virtual bool ProcessMouseDown(MouseEventArgs e)
Parameters
System. The event args. |
Returns
System. true if the processing of the event should be stopped, false otherwise. |
ProcessMouseMove(MouseEventArgs)
Processes the MouseMove event.
Declaration
protected virtual bool ProcessMouseMove(MouseEventArgs e)
Parameters
System. The event args. |
Returns
System. true if the processing of the event should be stopped, false otherwise. |
ProcessMouseUp(MouseEventArgs)
Processes the MouseUp event.
Declaration
protected virtual bool ProcessMouseUp(MouseEventArgs e)
Parameters
System. The event args. |
Returns
System. true if the processing of the event should be stopped, false otherwise. |
ProcessMouseWheel(MouseEventArgs)
Processes the MouseWheel event.
Declaration
protected virtual bool ProcessMouseWheel(MouseEventArgs e)
Parameters
System. The event args. |
Returns
System. true if the processing of the event should be stopped, false otherwise. |
ProcessSelection(ListViewDataItem, Keys, Boolean)
Processes the selection of a specified item.
Declaration
protected virtual void ProcessSelection(ListViewDataItem item, Keys modifierKeys, bool isMouseSelection)
Parameters
List The List |
System. The modifier keys which are pressed during selection. |
System. [true] if the selection is triggered by mouse input, [false] otherwise. |
ScrollTo(Int32)
Scrolls the view with a given amount.
Declaration
public void ScrollTo(int delta)
Parameters
System. The amount to scroll with. |
SetScrollValue(RadScrollBarElement, Int32)
Declaration
protected void SetScrollValue(RadScrollBarElement scrollbar, int newValue)
Parameters
Rad
|
System.
|
ShouldDropAfter(BaseListViewVisualItem, Point)
Indicates whether an item should be dropped after the given target according to the specified location.
Declaration
public virtual bool ShouldDropAfter(BaseListViewVisualItem targetElement, Point dropLocation)
Parameters
Base The drop target item. |
System. The drop location. |
Returns
System. [true] if a dropped item should be inserted after the target, [false] otherwise. |
SupportsOrientation(Orientation)
Returns a value indicating whether the current view supports given orientation.
Declaration
protected virtual bool SupportsOrientation(Orientation orientation)
Parameters
System. The orientation. |
Returns
System. [true] if the current view supports the orientation, [false] otherwise. |
ToggleItemCheckState(ListViewDataItem)
Toggles the CheckState of given item.
Declaration
protected void ToggleItemCheckState(ListViewDataItem item)
Parameters
List The item whose CheckState will be toggled. |
UpdateHScrollbarMaximum()
Updates the horizontal scrollbar.
Declaration
public virtual void UpdateHScrollbarMaximum()
UpdateHScrollbarVisibility()
Updates the visibility of the horizontal scrollbar.
Declaration
protected virtual void UpdateHScrollbarVisibility()
UpdateOnMeasure(SizeF)
Declaration
protected override bool UpdateOnMeasure(SizeF availableSize)
Parameters
System.
|
Returns
System.
|