WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VirtualListView

    Show / Hide Table of Contents

    Class VirtualListView

    The VirtualListView class is derives from DataListView to bind the AutoCompletePopup.

    Inheritance
    System.Object
    DataListView
    VirtualListView
    Inherited Members
    DataListView.OnResize(EventArgs)
    DataListView.SetColumns()
    DataListView.SetData()
    DataListView.ResizeListColumns(Int32)
    DataListView.Mirrored
    DataListView.CreateParams
    DataListView.ImageColumnIndex
    DataListView.ListOwner
    DataListView.ImageFromOwner
    DataListView.DataSource
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class VirtualListView : DataListView

    Constructors

    VirtualListView()

    Declaration
    public VirtualListView()

    Properties

    HeaderFont

    Gets or sets the Header font of the AutoCompletePopup.

    Declaration
    public Font HeaderFont { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    HeaderForeColor

    Gets or sets the HeaderForeColor of the AutoCompletePopup.

    Declaration
    public Color HeaderForeColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    IsHorizontalScrollBarVisible

    Gets the value whether horizontal scrollbar is visible.

    Declaration
    protected bool IsHorizontalScrollBarVisible { get; }
    Property Value
    Type Description
    System.Boolean

    IsVerticalScrollBarVisible

    Gets the value whether vertical scrollbar is visible.

    Declaration
    protected bool IsVerticalScrollBarVisible { get; }
    Property Value
    Type Description
    System.Boolean

    ItemsCount

    Gets or sets the sets the number of items to be displayed.

    Declaration
    public int ItemsCount { get; set; }
    Property Value
    Type Description
    System.Int32

    SelectedItemsCount

    Gets the selected items count of the AutoCompletePopup.

    Declaration
    public int SelectedItemsCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    AdjustHeight(Int32)

    Sets the control Height based on the item count subject to a maximum height.

    Declaration
    public override void AdjustHeight(int maxHeight)
    Parameters
    Type Name Description
    System.Int32 maxHeight

    The maximum height.

    Overrides
    DataListView.AdjustHeight(Int32)

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    DataListView.Dispose(Boolean)

    GetAdjustedMaxHeight(Int32)

    Gets the height of the adjusted max.

    Declaration
    protected override int GetAdjustedMaxHeight(int actualMaxHeight)
    Parameters
    Type Name Description
    System.Int32 actualMaxHeight

    Actual height of the max.

    Returns
    Type Description
    System.Int32
    Overrides
    DataListView.GetAdjustedMaxHeight(Int32)

    GetHotIndex()

    Declaration
    public int GetHotIndex()
    Returns
    Type Description
    System.Int32

    GetSelectedIndex()

    Declaration
    public virtual int GetSelectedIndex()
    Returns
    Type Description
    System.Int32

    GetSelectedItemText()

    Declaration
    public virtual string GetSelectedItemText()
    Returns
    Type Description
    System.String

    IsItemSelected(Int32)

    Declaration
    public bool IsItemSelected(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean

    OnDataSourceChanged(Object, Object)

    Declaration
    protected override void OnDataSourceChanged(object oldDataSource, object newDataSource)
    Parameters
    Type Name Description
    System.Object oldDataSource
    System.Object newDataSource
    Overrides
    DataListView.OnDataSourceChanged(Object, Object)

    OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs)

    Raises the System.Windows.Forms.ListView.DrawColumnHeader event.

    Declaration
    protected override void OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.DrawListViewColumnHeaderEventArgs e

    A System.Windows.Forms.DrawListViewColumnHeaderEventArgs that contains the event data.

    OnDrawItem(DrawListViewItemEventArgs)

    Draw item's background

    Declaration
    protected override void OnDrawItem(DrawListViewItemEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.DrawListViewItemEventArgs e

    A System.Windows.Forms.DrawListViewItemEventArgs that contains the event data.

    OnDrawSubItem(DrawListViewSubItemEventArgs)

    Draw image and subitems' text

    Declaration
    protected override void OnDrawSubItem(DrawListViewSubItemEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.DrawListViewSubItemEventArgs e

    A System.Windows.Forms.DrawListViewSubItemEventArgs that contains the event data.

    OnMouseMove(MouseEventArgs)

    Raises the System.Windows.Forms.Control.MouseMove event.

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A System.Windows.Forms.MouseEventArgs that contains the event data.

    OnMouseUp(MouseEventArgs)

    Raises the System.Windows.Forms.Control.MouseUp event.

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A System.Windows.Forms.MouseEventArgs that contains the event data.

    OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs)

    Raises the System.Windows.Forms.ListView.RetrieveVirtualItem event.

    Declaration
    protected override void OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.RetrieveVirtualItemEventArgs e

    A System.Windows.Forms.RetrieveVirtualItemEventArgs that contains the event data.

    PopulateList()

    Populates the ListView based on the columns in the DataSource.

    Declaration
    public override void PopulateList()
    Overrides
    DataListView.PopulateList()

    SelectItem(Int32, Boolean)

    Set the state of the passed Listview item's index.

    Declaration
    public void SelectItem(int index, bool selected)
    Parameters
    Type Name Description
    System.Int32 index

    Listview item's index.

    System.Boolean selected

    Select the passed item?

    SetSelectedIndex(Int32)

    Declaration
    public virtual void SetSelectedIndex(int index)
    Parameters
    Type Name Description
    System.Int32 index

    WndProc(ref Message)

    Overrides System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@).

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m

    The Windows System.Windows.Forms.Message to process.

    Events

    QueryItemText

    Declaration
    public event QueryItemTextHandler QueryItemText
    Event Type
    Type Description
    QueryItemTextHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved