Class VirtualListView
The VirtualListView class is derives from DataListView to bind the AutoCompletePopup.
Inherited Members
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 |
|---|
| System.Drawing.Font |
HeaderForeColor
Gets or sets the HeaderForeColor of the AutoCompletePopup.
Declaration
public Color HeaderForeColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
IsHorizontalScrollBarVisible
Gets the value whether horizontal scrollbar is visible.
Declaration
protected bool IsHorizontalScrollBarVisible { get; }
Property Value
| Type |
|---|
| System.Boolean |
IsVerticalScrollBarVisible
Gets the value whether vertical scrollbar is visible.
Declaration
protected bool IsVerticalScrollBarVisible { get; }
Property Value
| Type |
|---|
| System.Boolean |
ItemsCount
Gets or sets the sets the number of items to be displayed.
Declaration
public int ItemsCount { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
SelectedItemsCount
Gets the selected items count of the AutoCompletePopup.
Declaration
public int SelectedItemsCount { get; }
Property Value
| Type |
|---|
| System.Int32 |
Methods
add_QueryItemText(QueryItemTextHandler)
Declaration
public void add_QueryItemText(QueryItemTextHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryItemTextHandler | value |
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
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
Overrides
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 |
|---|
| System.Int32 |
Overrides
GetHotIndex()
Declaration
public int GetHotIndex()
Returns
| Type |
|---|
| System.Int32 |
GetSelectedIndex()
Declaration
public virtual int GetSelectedIndex()
Returns
| Type |
|---|
| System.Int32 |
GetSelectedItemText()
Declaration
public virtual string GetSelectedItemText()
Returns
| Type |
|---|
| System.String |
IsItemSelected(Int32)
Declaration
public bool IsItemSelected(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type |
|---|
| 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
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
remove_QueryItemText(QueryItemTextHandler)
Declaration
public void remove_QueryItemText(QueryItemTextHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryItemTextHandler | value |
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 |
|---|
| QueryItemTextHandler |