C# Класс Opc.Ua.Client.Controls.BaseListCtrl

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
ItemsLV System.Windows.Forms.ListView

Private Properties

Свойство Тип Описание
InitializeComponent void
ItemsLV_DoubleClick void
ItemsLV_MouseDown void
ItemsLV_MouseMove void
ItemsLV_MouseUp void
ItemsLV_SelectedIndexChanged void

Открытые методы

Метод Описание
BaseListCtrl ( ) : System

Initializes a new instance of the BaseListCtrl class.

GetItems ( System type ) : Array

Returns the objects associated with the items in the control.

GetSelectedItems ( System type ) : Array

Returns the objects associated with the selected items in the control.

Защищенные методы

Метод Описание
AddItem ( object item ) : ListViewItem

Adds an item to the list.

AddItem ( object item, string icon, int index ) : ListViewItem

Adds an item to the list.

AdjustColumns ( ) : void

Adjusts the columns shown in the list view.

BeginUpdate ( ) : void

Starts overwriting the contents of the control.

CompareItems ( object item1, object item2 ) : int

Compares two items in the list.

DeleteSelection ( ) : void

Deletes the currently selected items.

Dispose ( bool disposing ) : void

Clean up any resources being used.

EnableMenuItems ( ListViewItem clickedItem ) : void

Enables the state of menu items.

EndUpdate ( ) : void

Finishes overwriting the contents of the control.

FindItem ( object tag ) : ListViewItem

Finds the list item with specified tag in the control,

GetDataToDrag ( ) : object

Returns the data to drag.

GetSelectedTag ( int index ) : object

Returns the tag associated with a selected item.

ItemsLV_DragDrop ( object sender, DragEventArgs e ) : void

Handles the DragDrop event of the ItemsLV control.

ItemsLV_DragEnter ( object sender, DragEventArgs e ) : void

Handles the DragEnter event of the ItemsLV control.

NotifyItemAdded ( object item ) : void

Sends notifications that an item has been added to the control.

NotifyItemModified ( object item ) : void

Sends notifications that an item has been modified in the control.

NotifyItemRemoved ( object item ) : void

Sends notifications that and item has been removed from the control.

NotifyItemsAdded ( object items ) : void

Sends notifications that items have been added to the control.

NotifyItemsModified ( object items ) : void

Sends notifications that items have been modified in the control.

NotifyItemsRemoved ( object items ) : void

Sends notifications that items have been removed from the control.

PickItems ( ) : void

Sends notifications whenever items in the control are 'picked'.

SelectItems ( ) : void

Sends notifications whenever items in the control are 'selected'.

SetColumns ( object columns ) : void

Sets the columns shown in the list view.

UpdateItem ( ListViewItem listItem, object item ) : void

Updates a list item with the current contents of an object.

UpdateItem ( ListViewItem listItem, object item, int index ) : void

Updates a list item with the current contents of an object.

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ItemsLV_DoubleClick ( object sender, System e ) : void
ItemsLV_MouseDown ( object sender, System e ) : void
ItemsLV_MouseMove ( object sender, MouseEventArgs e ) : void
ItemsLV_MouseUp ( object sender, MouseEventArgs e ) : void
ItemsLV_SelectedIndexChanged ( object sender, System e ) : void

Описание методов

AddItem() защищенный Метод

Adds an item to the list.
protected AddItem ( object item ) : ListViewItem
item object
Результат ListViewItem

AddItem() защищенный Метод

Adds an item to the list.
protected AddItem ( object item, string icon, int index ) : ListViewItem
item object
icon string
index int
Результат ListViewItem

AdjustColumns() защищенный Метод

Adjusts the columns shown in the list view.
protected AdjustColumns ( ) : void
Результат void

BaseListCtrl() публичный Метод

Initializes a new instance of the BaseListCtrl class.
public BaseListCtrl ( ) : System
Результат System

BeginUpdate() защищенный Метод

Starts overwriting the contents of the control.
protected BeginUpdate ( ) : void
Результат void

CompareItems() защищенный Метод

Compares two items in the list.
protected CompareItems ( object item1, object item2 ) : int
item1 object
item2 object
Результат int

DeleteSelection() защищенный Метод

Deletes the currently selected items.
protected DeleteSelection ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

EnableMenuItems() защищенный Метод

Enables the state of menu items.
protected EnableMenuItems ( ListViewItem clickedItem ) : void
clickedItem ListViewItem
Результат void

EndUpdate() защищенный Метод

Finishes overwriting the contents of the control.
protected EndUpdate ( ) : void
Результат void

FindItem() защищенный Метод

Finds the list item with specified tag in the control,
protected FindItem ( object tag ) : ListViewItem
tag object
Результат ListViewItem

GetDataToDrag() защищенный Метод

Returns the data to drag.
protected GetDataToDrag ( ) : object
Результат object

GetItems() публичный Метод

Returns the objects associated with the items in the control.
public GetItems ( System type ) : Array
type System
Результат Array

GetSelectedItems() публичный Метод

Returns the objects associated with the selected items in the control.
public GetSelectedItems ( System type ) : Array
type System
Результат Array

GetSelectedTag() защищенный Метод

Returns the tag associated with a selected item.
protected GetSelectedTag ( int index ) : object
index int
Результат object

ItemsLV_DragDrop() защищенный Метод

Handles the DragDrop event of the ItemsLV control.
protected ItemsLV_DragDrop ( object sender, DragEventArgs e ) : void
sender object The source of the event.
e DragEventArgs The instance containing the event data.
Результат void

ItemsLV_DragEnter() защищенный Метод

Handles the DragEnter event of the ItemsLV control.
protected ItemsLV_DragEnter ( object sender, DragEventArgs e ) : void
sender object The source of the event.
e DragEventArgs The instance containing the event data.
Результат void

NotifyItemAdded() защищенный Метод

Sends notifications that an item has been added to the control.
protected NotifyItemAdded ( object item ) : void
item object
Результат void

NotifyItemModified() защищенный Метод

Sends notifications that an item has been modified in the control.
protected NotifyItemModified ( object item ) : void
item object
Результат void

NotifyItemRemoved() защищенный Метод

Sends notifications that and item has been removed from the control.
protected NotifyItemRemoved ( object item ) : void
item object
Результат void

NotifyItemsAdded() защищенный Метод

Sends notifications that items have been added to the control.
protected NotifyItemsAdded ( object items ) : void
items object
Результат void

NotifyItemsModified() защищенный Метод

Sends notifications that items have been modified in the control.
protected NotifyItemsModified ( object items ) : void
items object
Результат void

NotifyItemsRemoved() защищенный Метод

Sends notifications that items have been removed from the control.
protected NotifyItemsRemoved ( object items ) : void
items object
Результат void

PickItems() защищенный Метод

Sends notifications whenever items in the control are 'picked'.
protected PickItems ( ) : void
Результат void

SelectItems() защищенный Метод

Sends notifications whenever items in the control are 'selected'.
protected SelectItems ( ) : void
Результат void

SetColumns() защищенный Метод

Sets the columns shown in the list view.
protected SetColumns ( object columns ) : void
columns object
Результат void

UpdateItem() защищенный Метод

Updates a list item with the current contents of an object.
protected UpdateItem ( ListViewItem listItem, object item ) : void
listItem ListViewItem
item object
Результат void

UpdateItem() защищенный Метод

Updates a list item with the current contents of an object.
protected UpdateItem ( ListViewItem listItem, object item, int index ) : void
listItem ListViewItem
item object
index int
Результат void

Описание свойств

ItemsLV защищенное свойство

The ListView contained in the control.
protected ListView,System.Windows.Forms ItemsLV
Результат System.Windows.Forms.ListView