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

Mostrar archivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Protected Properties

Property Type Description
ItemsLV System.Windows.Forms.ListView

Private Properties

Property Type Description
InitializeComponent void
ItemsLV_DoubleClick void
ItemsLV_MouseDown void
ItemsLV_MouseMove void
ItemsLV_MouseUp void
ItemsLV_SelectedIndexChanged void

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

Adds an item to the list.
protected AddItem ( object item ) : ListViewItem
item object
return ListViewItem

AddItem() protected method

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

AdjustColumns() protected method

Adjusts the columns shown in the list view.
protected AdjustColumns ( ) : void
return void

BaseListCtrl() public method

Initializes a new instance of the BaseListCtrl class.
public BaseListCtrl ( ) : System
return System

BeginUpdate() protected method

Starts overwriting the contents of the control.
protected BeginUpdate ( ) : void
return void

CompareItems() protected method

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

DeleteSelection() protected method

Deletes the currently selected items.
protected DeleteSelection ( ) : void
return void

Dispose() protected method

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

EnableMenuItems() protected method

Enables the state of menu items.
protected EnableMenuItems ( ListViewItem clickedItem ) : void
clickedItem ListViewItem
return void

EndUpdate() protected method

Finishes overwriting the contents of the control.
protected EndUpdate ( ) : void
return void

FindItem() protected method

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

GetDataToDrag() protected method

Returns the data to drag.
protected GetDataToDrag ( ) : object
return object

GetItems() public method

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

GetSelectedItems() public method

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

GetSelectedTag() protected method

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

ItemsLV_DragDrop() protected method

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.
return void

ItemsLV_DragEnter() protected method

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.
return void

NotifyItemAdded() protected method

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

NotifyItemModified() protected method

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

NotifyItemRemoved() protected method

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

NotifyItemsAdded() protected method

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

NotifyItemsModified() protected method

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

NotifyItemsRemoved() protected method

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

PickItems() protected method

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

SelectItems() protected method

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

SetColumns() protected method

Sets the columns shown in the list view.
protected SetColumns ( object columns ) : void
columns object
return void

UpdateItem() protected method

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

UpdateItem() protected method

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
return void

Property Details

ItemsLV protected_oe property

The ListView contained in the control.
protected ListView,System.Windows.Forms ItemsLV
return System.Windows.Forms.ListView