C# Class Opc.Ua.Client.Controls.BaseListCtrl

Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Protected Properties

Свойство Type Description
ItemsLV System.Windows.Forms.ListView

Private Properties

Свойство Type Description
InitializeComponent void
ItemsLV_DoubleClick void
ItemsLV_MouseDown void
ItemsLV_MouseMove void
ItemsLV_MouseUp void
ItemsLV_SelectedIndexChanged void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

AddItem() protected méthode

Adds an item to the list.
protected AddItem ( object item ) : ListViewItem
item object
Résultat ListViewItem

AddItem() protected méthode

Adds an item to the list.
protected AddItem ( object item, string icon, int index ) : ListViewItem
item object
icon string
index int
Résultat ListViewItem

AdjustColumns() protected méthode

Adjusts the columns shown in the list view.
protected AdjustColumns ( ) : void
Résultat void

BaseListCtrl() public méthode

Initializes a new instance of the BaseListCtrl class.
public BaseListCtrl ( ) : System
Résultat System

BeginUpdate() protected méthode

Starts overwriting the contents of the control.
protected BeginUpdate ( ) : void
Résultat void

CompareItems() protected méthode

Compares two items in the list.
protected CompareItems ( object item1, object item2 ) : int
item1 object
item2 object
Résultat int

DeleteSelection() protected méthode

Deletes the currently selected items.
protected DeleteSelection ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

EnableMenuItems() protected méthode

Enables the state of menu items.
protected EnableMenuItems ( ListViewItem clickedItem ) : void
clickedItem ListViewItem
Résultat void

EndUpdate() protected méthode

Finishes overwriting the contents of the control.
protected EndUpdate ( ) : void
Résultat void

FindItem() protected méthode

Finds the list item with specified tag in the control,
protected FindItem ( object tag ) : ListViewItem
tag object
Résultat ListViewItem

GetDataToDrag() protected méthode

Returns the data to drag.
protected GetDataToDrag ( ) : object
Résultat object

GetItems() public méthode

Returns the objects associated with the items in the control.
public GetItems ( System type ) : Array
type System
Résultat Array

GetSelectedItems() public méthode

Returns the objects associated with the selected items in the control.
public GetSelectedItems ( System type ) : Array
type System
Résultat Array

GetSelectedTag() protected méthode

Returns the tag associated with a selected item.
protected GetSelectedTag ( int index ) : object
index int
Résultat object

ItemsLV_DragDrop() protected méthode

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.
Résultat void

ItemsLV_DragEnter() protected méthode

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.
Résultat void

NotifyItemAdded() protected méthode

Sends notifications that an item has been added to the control.
protected NotifyItemAdded ( object item ) : void
item object
Résultat void

NotifyItemModified() protected méthode

Sends notifications that an item has been modified in the control.
protected NotifyItemModified ( object item ) : void
item object
Résultat void

NotifyItemRemoved() protected méthode

Sends notifications that and item has been removed from the control.
protected NotifyItemRemoved ( object item ) : void
item object
Résultat void

NotifyItemsAdded() protected méthode

Sends notifications that items have been added to the control.
protected NotifyItemsAdded ( object items ) : void
items object
Résultat void

NotifyItemsModified() protected méthode

Sends notifications that items have been modified in the control.
protected NotifyItemsModified ( object items ) : void
items object
Résultat void

NotifyItemsRemoved() protected méthode

Sends notifications that items have been removed from the control.
protected NotifyItemsRemoved ( object items ) : void
items object
Résultat void

PickItems() protected méthode

Sends notifications whenever items in the control are 'picked'.
protected PickItems ( ) : void
Résultat void

SelectItems() protected méthode

Sends notifications whenever items in the control are 'selected'.
protected SelectItems ( ) : void
Résultat void

SetColumns() protected méthode

Sets the columns shown in the list view.
protected SetColumns ( object columns ) : void
columns object
Résultat void

UpdateItem() protected méthode

Updates a list item with the current contents of an object.
protected UpdateItem ( ListViewItem listItem, object item ) : void
listItem ListViewItem
item object
Résultat void

UpdateItem() protected méthode

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
Résultat void

Property Details

ItemsLV protected_oe property

The ListView contained in the control.
protected ListView,System.Windows.Forms ItemsLV
Résultat System.Windows.Forms.ListView