ListViewExtensions Class

Contains custom extension methods to use with ListView control.

Definition

Namespace: DevCase.Extensions.ListViewExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class ListViewExtensions
Inheritance
Object    ListViewExtensions

Methods

CopyAllItems(ListView) Copies all the text contained in the items of ListView to the clipboard.
CopyAllItems(ListView, Int32) Copies all the text contained in the items of ListView to the clipboard.
CopyAllItems(ListView, String) Copies all the text contained in the items of ListView to the clipboard.
CopyAllItems(ListView, String, Int32) Copies all the text contained in the items of ListView to the clipboard.
CopyCheckedItems(ListView) Copies all the text contained in the current checked items of ListView to the clipboard.
CopyCheckedItems(ListView, String) Copies all the text contained in the current checked items of ListView to the clipboard.
CopyCheckedItems(ListView, String, Int32) Copies all the text contained in the current checked items of ListView to the clipboard.
CopyItem(ListView, Int32) Copies all the text contained in the specified ListViewItem to the clipboard.
CopyItem(ListView, Int32, String) Copies all the text contained in the specified ListViewItem to the clipboard.
CopyItem(ListView, Int32, String, Int32) Copies all the text contained in the specified ListViewItem to the clipboard.
CopyItems(ListView, Int32) Copies all the text contained in the specified items of ListView to the clipboard.
CopyItems(ListView, Int32, String) Copies all the text contained in the specified items of ListView to the clipboard.
CopyItems(ListView, Int32, String, Int32) Copies all the text contained in the specified items of ListView to the clipboard.
CopySelectedItems(ListView) Copies all the text contained in the current selected items of ListView to the clipboard.
CopySelectedItems(ListView, String) Copies all the text contained in the current selected items of ListView to the clipboard.
CopySelectedItems(ListView, String, Int32) Copies all the text contained in the current selected items of ListView to the clipboard.
DeselectAllItems Deselects all the items in the source ListView.
Deserialize Deserializes the items of the ListView from a binary local file.

You can use this method to restore the contents of a ListView that were saved using the Serialize(ListView, FileInfo) method.

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ExportToCSV Exports the source ListView to CSV table format.
ExportToXml Exports the source ListView to Xml format.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MoveSelectedItems(ListView, RowMoveDirection) Moves up or down the selected items of the ListView.
MoveSelectedItems(ListView, RowMoveDirection, IEnumerableInt32) Moves up or down the selected items of the ListView.
RemoveDuplicatedItems Removes duplicated items in the ListView.

Comparison is done by comparing the text of the index of the specified subitems.

RemoveSelectedItems Removes the selected items from ListView.
ScrollToBottom Scrolls the source ListView to the bottom.
ScrollToTop Scrolls the source ListView to the top.
SelectAllItems Selects all the items in the source ListView.
Serialize Serializes the items of the ListView to a binary local file.

You can use this method to backup the contents of a ListView, then restore them with the Deserialize(ListView, FileInfo) method.

SetColumnIndices(ListView, Int32) Indices the rows of a column of the ListView.
SetColumnIndices(ListView, Int32, Int32) Indices the rows of a column of the ListView.
ToDataGridView Converts the source ListView to a DataGridView.
ToDataTable Converts the source ListView to a DataTable.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also