C# Class System.Windows.Forms.ListView

Inheritance: Control
Show file Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Private Properties

Property Type Description
AddColumn void
BiggestItem System.Drawing.Size
CalcTextSize void
CalculateScrollBars void
CanProceedWithResize bool
ChangeItemLocation void
FindItemWithText System.Windows.Forms.ListViewItem
GetAdjustedIndex int
GetDefaultGroupItems int
GetDetailsItemHeight int
GetFixedAdjustedIndex int
GetFixedItemLocation System.Drawing.Point
GetItemAtDisplayIndex System.Windows.Forms.ListViewItem
GetItemIndex int
GetItemLocation System.Drawing.Point
GetReorderedColumn ColumnHeader
GetReorderedColumnIndex int
HandleNavKeys bool
IsInputCharInternal bool
KeySearchString bool
LayoutGroupHeader int
ListView_Invalidated void
ListView_KeyDown void
ListView_MouseEnter void
ListView_SizeChanged void
OnImageListChanged void
OnItemsChanged void
OnPaintInternal void
OnRightToLeftLayoutChanged void
OnSelectedIndexChanged void
OnUIACheckBoxesChanged void
OnUIAFocusedItemChanged void
OnUIALabelEditChanged void
OnUIAMultiSelectChanged void
OnUIAShowGroupsChanged void
OnUIAViewChanged void
RaiseColumnWidthChanged void
RaiseColumnWidthChanged void
Redraw void
RedrawItems void
ReorderColumn void
ReorderColumns void
ResetSearchString void
Scroll void
SelectItems bool
SetFocusedItem void
SetItemAtDisplayIndex void
SetScrollValue void
Sort void
TranslateMouseEventArgs MouseEventArgs
UIAGetHeaderBounds Rectangle

Public Methods

Method Description
ArrangeIcons ( ) : void
ArrangeIcons ( ListViewAlignment value ) : void
AutoResizeColumn ( int columnIndex, ColumnHeaderAutoResizeStyle headerAutoResize ) : void
AutoResizeColumns ( ColumnHeaderAutoResizeStyle headerAutoResize ) : void
BeginUpdate ( ) : void
CalculateCustomColumnWidth ( ) : void
CalculateDetailsGroupItemsCount ( ) : void
CalculateGroupsLayout ( Size item_size, int y_spacing, int y_origin ) : void
CalculateRowsAndCols ( Size item_size, bool left_aligned, int x_spacing, int y_spacing ) : void
Clear ( ) : void
EndUpdate ( ) : void
EnsureVisible ( int index ) : void
FindItemWithText ( string text ) : System.Windows.Forms.ListViewItem
FindItemWithText ( string text, bool includeSubItemsInSearch, int startIndex ) : System.Windows.Forms.ListViewItem
FindItemWithText ( string text, bool includeSubItemsInSearch, int startIndex, bool isPrefixSearch ) : System.Windows.Forms.ListViewItem
FindNearestItem ( SearchDirectionHint dir, Point point ) : System.Windows.Forms.ListViewItem
FindNearestItem ( SearchDirectionHint searchDirection, int x, int y ) : System.Windows.Forms.ListViewItem
FocusChanged ( object o, EventArgs args ) : void
GetItemAt ( int x, int y ) : System.Windows.Forms.ListViewItem
GetItemRect ( int index ) : Rectangle
GetItemRect ( int index, ItemBoundsPortion portion ) : Rectangle
HitTest ( Point point ) : ListViewHitTestInfo
HitTest ( int x, int y ) : ListViewHitTestInfo
InvalidateSelection ( ) : void
LayoutIcons ( Size item_size, bool left_aligned, int x_spacing, int y_spacing ) : void
ListView ( ) : System
SelectIndex ( int display_index ) : void
SetItemLocation ( int index, int x, int y, int row, int col ) : void
ShiftItemsPositions ( int from, int to, bool forward ) : void
Sort ( ) : void
ToString ( ) : string
ToggleItemsCheckState ( ) : void

Protected Methods

Method Description
CreateHandle ( ) : void
Dispose ( bool disposing ) : void
IsInputKey ( Keys keyData ) : bool
OnAfterLabelEdit ( LabelEditEventArgs e ) : void
OnBackgroundImageChanged ( EventArgs e ) : void
OnBeforeLabelEdit ( LabelEditEventArgs e ) : void
OnCacheVirtualItems ( CacheVirtualItemsEventArgs e ) : void
OnColumnClick ( ColumnClickEventArgs e ) : void
OnColumnReordered ( ColumnReorderedEventArgs e ) : void
OnColumnWidthChanged ( ColumnWidthChangedEventArgs e ) : void
OnColumnWidthChanging ( ColumnWidthChangingEventArgs e ) : void
OnDrawColumnHeader ( DrawListViewColumnHeaderEventArgs e ) : void
OnDrawItem ( DrawListViewItemEventArgs e ) : void
OnDrawSubItem ( DrawListViewSubItemEventArgs e ) : void
OnFontChanged ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnHandleDestroyed ( EventArgs e ) : void
OnItemActivate ( EventArgs e ) : void
OnItemCheck ( ItemCheckEventArgs ice ) : void
OnItemChecked ( ItemCheckedEventArgs e ) : void
OnItemDrag ( ItemDragEventArgs e ) : void
OnItemMouseHover ( ListViewItemMouseHoverEventArgs e ) : void
OnItemSelectionChanged ( ListViewItemSelectionChangedEventArgs e ) : void
OnMouseHover ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnParentChanged ( EventArgs e ) : void
OnResize ( EventArgs e ) : void
OnRetrieveVirtualItem ( RetrieveVirtualItemEventArgs e ) : void
OnSearchForVirtualItem ( SearchForVirtualItemEventArgs e ) : void
OnSelectedIndexChanged ( EventArgs e ) : void
OnSystemColorsChanged ( EventArgs e ) : void
OnVirtualItemsSelectionRangeChanged ( ListViewVirtualItemsSelectionRangeChangedEventArgs e ) : void
RealizeProperties ( ) : void
UpdateExtendedStyles ( ) : void

Private Methods

Method Description
AddColumn ( ColumnHeader newCol, int index, bool redraw ) : void
BiggestItem ( int col ) : Size
CalcTextSize ( ) : void
CalculateScrollBars ( ) : void
CanProceedWithResize ( ColumnHeader col, int width ) : bool
ChangeItemLocation ( int display_index, Point new_pos ) : void
FindItemWithText ( string text, bool includeSubItemsInSearch, int startIndex, bool isPrefixSearch, bool roundtrip ) : System.Windows.Forms.ListViewItem
GetAdjustedIndex ( Keys key ) : int
GetDefaultGroupItems ( ) : int
GetDetailsItemHeight ( ) : int
GetFixedAdjustedIndex ( Keys key ) : int
GetFixedItemLocation ( int index ) : Point
GetItemAtDisplayIndex ( int display_index ) : System.Windows.Forms.ListViewItem
GetItemIndex ( int display_index ) : int
GetItemLocation ( int index ) : Point
GetReorderedColumn ( int index ) : ColumnHeader
GetReorderedColumnIndex ( ColumnHeader column ) : int
HandleNavKeys ( Keys key_data ) : bool
IsInputCharInternal ( char charCode ) : bool
KeySearchString ( KeyEventArgs ke ) : bool
LayoutGroupHeader ( ListViewGroup group, int y_origin, int item_height, int y_spacing, int rows ) : int
ListView_Invalidated ( object sender, InvalidateEventArgs e ) : void
ListView_KeyDown ( object sender, KeyEventArgs ke ) : void
ListView_MouseEnter ( object sender, EventArgs args ) : void
ListView_SizeChanged ( object sender, EventArgs e ) : void
OnImageListChanged ( object sender, EventArgs args ) : void
OnItemsChanged ( ) : void
OnPaintInternal ( PaintEventArgs pe ) : void
OnRightToLeftLayoutChanged ( EventArgs e ) : void
OnSelectedIndexChanged ( ) : void
OnUIACheckBoxesChanged ( ) : void
OnUIAFocusedItemChanged ( ) : void
OnUIALabelEditChanged ( ) : void
OnUIAMultiSelectChanged ( ) : void
OnUIAShowGroupsChanged ( ) : void
OnUIAViewChanged ( ) : void
RaiseColumnWidthChanged ( ColumnHeader column ) : void
RaiseColumnWidthChanged ( int resize_column ) : void
Redraw ( bool recalculate ) : void
RedrawItems ( int startIndex, int endIndex, bool invalidateOnly ) : void
ReorderColumn ( ColumnHeader col, int index, bool fireEvent ) : void
ReorderColumns ( int display_indices, bool redraw ) : void
ResetSearchString ( ) : void
Scroll ( ScrollBar scrollbar, int delta ) : void
SelectItems ( ArrayList sel_items ) : bool
SetFocusedItem ( int display_index ) : void
SetItemAtDisplayIndex ( int display_index, int index ) : void
SetScrollValue ( ScrollBar scrollbar, int val ) : void
Sort ( bool redraw ) : void
TranslateMouseEventArgs ( MouseEventArgs args ) : MouseEventArgs
UIAGetHeaderBounds ( ListViewGroup group ) : Rectangle

Method Details

ArrangeIcons() public method

public ArrangeIcons ( ) : void
return void

ArrangeIcons() public method

public ArrangeIcons ( ListViewAlignment value ) : void
value ListViewAlignment
return void

AutoResizeColumn() public method

public AutoResizeColumn ( int columnIndex, ColumnHeaderAutoResizeStyle headerAutoResize ) : void
columnIndex int
headerAutoResize ColumnHeaderAutoResizeStyle
return void

AutoResizeColumns() public method

public AutoResizeColumns ( ColumnHeaderAutoResizeStyle headerAutoResize ) : void
headerAutoResize ColumnHeaderAutoResizeStyle
return void

BeginUpdate() public method

public BeginUpdate ( ) : void
return void

CalculateCustomColumnWidth() public method

public CalculateCustomColumnWidth ( ) : void
return void

CalculateDetailsGroupItemsCount() public method

public CalculateDetailsGroupItemsCount ( ) : void
return void

CalculateGroupsLayout() public method

public CalculateGroupsLayout ( Size item_size, int y_spacing, int y_origin ) : void
item_size System.Drawing.Size
y_spacing int
y_origin int
return void

CalculateRowsAndCols() public method

public CalculateRowsAndCols ( Size item_size, bool left_aligned, int x_spacing, int y_spacing ) : void
item_size System.Drawing.Size
left_aligned bool
x_spacing int
y_spacing int
return void

Clear() public method

public Clear ( ) : void
return void

CreateHandle() protected method

protected CreateHandle ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndUpdate() public method

public EndUpdate ( ) : void
return void

EnsureVisible() public method

public EnsureVisible ( int index ) : void
index int
return void

FindItemWithText() public method

public FindItemWithText ( string text ) : System.Windows.Forms.ListViewItem
text string
return System.Windows.Forms.ListViewItem

FindItemWithText() public method

public FindItemWithText ( string text, bool includeSubItemsInSearch, int startIndex ) : System.Windows.Forms.ListViewItem
text string
includeSubItemsInSearch bool
startIndex int
return System.Windows.Forms.ListViewItem

FindItemWithText() public method

public FindItemWithText ( string text, bool includeSubItemsInSearch, int startIndex, bool isPrefixSearch ) : System.Windows.Forms.ListViewItem
text string
includeSubItemsInSearch bool
startIndex int
isPrefixSearch bool
return System.Windows.Forms.ListViewItem

FindNearestItem() public method

public FindNearestItem ( SearchDirectionHint dir, Point point ) : System.Windows.Forms.ListViewItem
dir SearchDirectionHint
point System.Drawing.Point
return System.Windows.Forms.ListViewItem

FindNearestItem() public method

public FindNearestItem ( SearchDirectionHint searchDirection, int x, int y ) : System.Windows.Forms.ListViewItem
searchDirection SearchDirectionHint
x int
y int
return System.Windows.Forms.ListViewItem

FocusChanged() public method

public FocusChanged ( object o, EventArgs args ) : void
o object
args EventArgs
return void

GetItemAt() public method

public GetItemAt ( int x, int y ) : System.Windows.Forms.ListViewItem
x int
y int
return System.Windows.Forms.ListViewItem

GetItemRect() public method

public GetItemRect ( int index ) : Rectangle
index int
return System.Drawing.Rectangle

GetItemRect() public method

public GetItemRect ( int index, ItemBoundsPortion portion ) : Rectangle
index int
portion ItemBoundsPortion
return System.Drawing.Rectangle

HitTest() public method

public HitTest ( Point point ) : ListViewHitTestInfo
point Point
return ListViewHitTestInfo

HitTest() public method

public HitTest ( int x, int y ) : ListViewHitTestInfo
x int
y int
return ListViewHitTestInfo

InvalidateSelection() public method

public InvalidateSelection ( ) : void
return void

IsInputKey() protected method

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

LayoutIcons() public method

public LayoutIcons ( Size item_size, bool left_aligned, int x_spacing, int y_spacing ) : void
item_size Size
left_aligned bool
x_spacing int
y_spacing int
return void

ListView() public method

public ListView ( ) : System
return System

OnAfterLabelEdit() protected method

protected OnAfterLabelEdit ( LabelEditEventArgs e ) : void
e LabelEditEventArgs
return void

OnBackgroundImageChanged() protected method

protected OnBackgroundImageChanged ( EventArgs e ) : void
e EventArgs
return void

OnBeforeLabelEdit() protected method

protected OnBeforeLabelEdit ( LabelEditEventArgs e ) : void
e LabelEditEventArgs
return void

OnCacheVirtualItems() protected method

protected OnCacheVirtualItems ( CacheVirtualItemsEventArgs e ) : void
e CacheVirtualItemsEventArgs
return void

OnColumnClick() protected method

protected OnColumnClick ( ColumnClickEventArgs e ) : void
e ColumnClickEventArgs
return void

OnColumnReordered() protected method

protected OnColumnReordered ( ColumnReorderedEventArgs e ) : void
e ColumnReorderedEventArgs
return void

OnColumnWidthChanged() protected method

protected OnColumnWidthChanged ( ColumnWidthChangedEventArgs e ) : void
e ColumnWidthChangedEventArgs
return void

OnColumnWidthChanging() protected method

protected OnColumnWidthChanging ( ColumnWidthChangingEventArgs e ) : void
e ColumnWidthChangingEventArgs
return void

OnDrawColumnHeader() protected method

protected OnDrawColumnHeader ( DrawListViewColumnHeaderEventArgs e ) : void
e DrawListViewColumnHeaderEventArgs
return void

OnDrawItem() protected method

protected OnDrawItem ( DrawListViewItemEventArgs e ) : void
e DrawListViewItemEventArgs
return void

OnDrawSubItem() protected method

protected OnDrawSubItem ( DrawListViewSubItemEventArgs e ) : void
e DrawListViewSubItemEventArgs
return void

OnFontChanged() protected method

protected OnFontChanged ( EventArgs e ) : void
e EventArgs
return void

OnHandleCreated() protected method

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
return void

OnHandleDestroyed() protected method

protected OnHandleDestroyed ( EventArgs e ) : void
e EventArgs
return void

OnItemActivate() protected method

protected OnItemActivate ( EventArgs e ) : void
e EventArgs
return void

OnItemCheck() protected method

protected OnItemCheck ( ItemCheckEventArgs ice ) : void
ice ItemCheckEventArgs
return void

OnItemChecked() protected method

protected OnItemChecked ( ItemCheckedEventArgs e ) : void
e ItemCheckedEventArgs
return void

OnItemDrag() protected method

protected OnItemDrag ( ItemDragEventArgs e ) : void
e ItemDragEventArgs
return void

OnItemMouseHover() protected method

protected OnItemMouseHover ( ListViewItemMouseHoverEventArgs e ) : void
e ListViewItemMouseHoverEventArgs
return void

OnItemSelectionChanged() protected method

protected OnItemSelectionChanged ( ListViewItemSelectionChangedEventArgs e ) : void
e ListViewItemSelectionChangedEventArgs
return void

OnMouseHover() protected method

protected OnMouseHover ( EventArgs e ) : void
e EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e EventArgs
return void

OnParentChanged() protected method

protected OnParentChanged ( EventArgs e ) : void
e EventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e EventArgs
return void

OnRetrieveVirtualItem() protected method

protected OnRetrieveVirtualItem ( RetrieveVirtualItemEventArgs e ) : void
e RetrieveVirtualItemEventArgs
return void

OnSearchForVirtualItem() protected method

protected OnSearchForVirtualItem ( SearchForVirtualItemEventArgs e ) : void
e SearchForVirtualItemEventArgs
return void

OnSelectedIndexChanged() protected method

protected OnSelectedIndexChanged ( EventArgs e ) : void
e EventArgs
return void

OnSystemColorsChanged() protected method

protected OnSystemColorsChanged ( EventArgs e ) : void
e EventArgs
return void

OnVirtualItemsSelectionRangeChanged() protected method

protected OnVirtualItemsSelectionRangeChanged ( ListViewVirtualItemsSelectionRangeChangedEventArgs e ) : void
e ListViewVirtualItemsSelectionRangeChangedEventArgs
return void

RealizeProperties() protected method

protected RealizeProperties ( ) : void
return void

SelectIndex() public method

public SelectIndex ( int display_index ) : void
display_index int
return void

SetItemLocation() public method

public SetItemLocation ( int index, int x, int y, int row, int col ) : void
index int
x int
y int
row int
col int
return void

ShiftItemsPositions() public method

public ShiftItemsPositions ( int from, int to, bool forward ) : void
from int
to int
forward bool
return void

Sort() public method

public Sort ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

ToggleItemsCheckState() public method

public ToggleItemsCheckState ( ) : void
return void

UpdateExtendedStyles() protected method

protected UpdateExtendedStyles ( ) : void
return void