Dotnet listview

属性-----------------------------------------------------------------------------------------
  .AccessibilityObject : <System.Windows.Forms.AccessibleObject>, read-only
  .AccessibleDefaultActionDescription : <System.String>
  .AccessibleDescription : <System.String>
  .AccessibleName : <System.String>
  .AccessibleRole : <System.Windows.Forms.AccessibleRole>
  .Activation : <System.Windows.Forms.ItemActivation>
  .Alignment : <System.Windows.Forms.ListViewAlignment>
  .AllowColumnReorder : <System.Boolean>
  .AllowDrop : <System.Boolean>
  .Anchor : <System.Windows.Forms.AnchorStyles>
  .AutoArrange : <System.Boolean>
  .AutoScrollOffset : <System.Drawing.Point>
  .AutoSize : <System.Boolean>
  .BackColor : <System.Drawing.Color>
  .BackgroundImage : <System.Drawing.Image>
  .BackgroundImageLayout : <System.Windows.Forms.ImageLayout>
  .BackgroundImageTiled : <System.Boolean>
  .BindingContext : <System.Windows.Forms.BindingContext>
  .BorderStyle : <System.Windows.Forms.BorderStyle>
  .Bottom : <System.Int32>, read-only
  .Bounds : <System.Drawing.Rectangle>
  .CanFocus : <System.Boolean>, read-only
  .CanSelect : <System.Boolean>, read-only
  .Capture : <System.Boolean>
  .CausesValidation : <System.Boolean>
  .CheckBoxes : <System.Boolean>
  .CheckedIndices : <System.Windows.Forms.ListView+CheckedIndexCollection>, read-only
  .CheckedItems : <System.Windows.Forms.ListView+CheckedListViewItemCollection>, read-only
  .CheckForIllegalCrossThreadCalls : <System.Boolean>, static
  .ClientRectangle : <System.Drawing.Rectangle>, read-only
  .ClientSize : <System.Drawing.Size>
  .Columns : <System.Windows.Forms.ListView+ColumnHeaderCollection>, read-only
  .CompanyName : <System.String>, read-only
  .Container : <System.ComponentModel.IContainer>, read-only
  .ContainsFocus : <System.Boolean>, read-only
  .ContextMenu : <System.Windows.Forms.ContextMenu>
  .ContextMenuStrip : <System.Windows.Forms.ContextMenuStrip>
  .Controls : <System.Windows.Forms.Control+ControlCollection>, read-only
  .Created : <System.Boolean>, read-only
  .Cursor : <System.Windows.Forms.Cursor>
  .DataBindings : <System.Windows.Forms.ControlBindingsCollection>, read-only
  .DefaultBackColor : <System.Drawing.Color>, read-only, static
  .DefaultFont : <System.Drawing.Font>, read-only, static
  .DefaultForeColor : <System.Drawing.Color>, read-only, static
  .DisplayRectangle : <System.Drawing.Rectangle>, read-only
  .Disposing : <System.Boolean>, read-only
  .Dock : <System.Windows.Forms.DockStyle>
  .Enabled : <System.Boolean>
  .Focused : <System.Boolean>, read-only
  .FocusedItem : <System.Windows.Forms.ListViewItem>
  .Font : <System.Drawing.Font>
  .ForeColor : <System.Drawing.Color>
  .FullRowSelect : <System.Boolean>
  .GridLines : <System.Boolean>
  .Groups : <System.Windows.Forms.ListViewGroupCollection>, read-only
  .Handle : <System.IntPtr>, read-only
  .HasChildren : <System.Boolean>, read-only
  .HeaderStyle : <System.Windows.Forms.ColumnHeaderStyle>
  .Height : <System.Int32>
  .HideSelection : <System.Boolean>
  .HotTracking : <System.Boolean>
  .HoverSelection : <System.Boolean>
  .ImeMode : <System.Windows.Forms.ImeMode>
  .InsertionMark : <System.Windows.Forms.ListViewInsertionMark>, read-only
  .InvokeRequired : <System.Boolean>, read-only
  .IsAccessible : <System.Boolean>
  .IsDisposed : <System.Boolean>, read-only
  .IsHandleCreated : <System.Boolean>, read-only
  .IsMirrored : <System.Boolean>, read-only
  .Items : <System.Windows.Forms.ListView+ListViewItemCollection>, read-only
  .LabelEdit : <System.Boolean>
  .LabelWrap : <System.Boolean>
  .LargeImageList : <System.Windows.Forms.ImageList>
  .LayoutEngine : <System.Windows.Forms.Layout.LayoutEngine>, read-only
  .Left : <System.Int32>
  .ListViewItemSorter : <System.Collections.IComparer>
  .Location : <System.Drawing.Point>
  .Margin : <System.Windows.Forms.Padding>
  .MaximumSize : <System.Drawing.Size>
  .MinimumSize : <System.Drawing.Size>
  .ModifierKeys : <System.Windows.Forms.Keys>, read-only, static
  .MouseButtons : <System.Windows.Forms.MouseButtons>, read-only, static
  .MousePosition : <System.Drawing.Point>, read-only, static
  .MultiSelect : <System.Boolean>
  .Name : <System.String>
  .OwnerDraw : <System.Boolean>
  .Padding : <System.Windows.Forms.Padding>
  .Parent : <System.Windows.Forms.Control>
  .PreferredSize : <System.Drawing.Size>, read-only
  .ProductName : <System.String>, read-only
  .ProductVersion : <System.String>, read-only
  .RecreatingHandle : <System.Boolean>, read-only
  .Region : <System.Drawing.Region>
  .Right : <System.Int32>, read-only
  .RightToLeft : <System.Windows.Forms.RightToLeft>
  .RightToLeftLayout : <System.Boolean>
  .Scrollable : <System.Boolean>
  .SelectedIndices : <System.Windows.Forms.ListView+SelectedIndexCollection>, read-only
  .SelectedItems : <System.Windows.Forms.ListView+SelectedListViewItemCollection>, read-only
  .ShowGroups : <System.Boolean>
  .ShowItemToolTips : <System.Boolean>
  .Site : <System.ComponentModel.ISite>
  .Size : <System.Drawing.Size>
  .SmallImageList : <System.Windows.Forms.ImageList>
  .Sorting : <System.Windows.Forms.SortOrder>
  .StateImageList : <System.Windows.Forms.ImageList>
  .TabIndex : <System.Int32>
  .TabStop : <System.Boolean>
  .Tag : <System.Object>
  .Text : <System.String>
  .TileSize : <System.Drawing.Size>
  .Top : <System.Int32>
  .TopItem : <System.Windows.Forms.ListViewItem>
  .TopLevelControl : <System.Windows.Forms.Control>, read-only
  .UseCompatibleStateImageBehavior : <System.Boolean>
  .UseWaitCursor : <System.Boolean>
  .View : <System.Windows.Forms.View>
  .VirtualListSize : <System.Int32>
  .VirtualMode : <System.Boolean>
  .Visible : <System.Boolean>
  .Width : <System.Int32>
  .WindowTarget : <System.Windows.Forms.IWindowTarget>

方法-----------------------------------------------------------------------------

  .ArrangeIcons()
  .ArrangeIcons <System.Windows.Forms.ListViewAlignment>value
  .AutoResizeColumn <System.Int32>columnIndex <System.Windows.Forms.ColumnHeaderAutoResizeStyle>headerAutoResize
  .AutoResizeColumns <System.Windows.Forms.ColumnHeaderAutoResizeStyle>headerAutoResize
  .<System.IAsyncResult>BeginInvoke <System.Delegate>method
  .<System.IAsyncResult>BeginInvoke <System.Delegate>method <System.Object[]>args
  .BeginUpdate()
  .BringToFront()
  .Clear()
  .<System.Boolean>Contains <System.Windows.Forms.Control>ctl
  .CreateControl()
  .<System.Drawing.Graphics>CreateGraphics()
  .<System.Runtime.Remoting.ObjRef>CreateObjRef <System.Type>requestedType
  .Dispose()
  .<System.Windows.Forms.DragDropEffects>DoDragDrop <System.Object>data <System.Windows.Forms.DragDropEffects>allowedEffects
  .DrawToBitmap <System.Drawing.Bitmap>bitmap <System.Drawing.Rectangle>targetBounds
  .<System.Object>EndInvoke <System.IAsyncResult>asyncResult
  .EndUpdate()
  .EnsureVisible <System.Int32>index
  .<System.Boolean>Equals <System.Object>obj
  .[static]<System.Boolean>Equals <System.Object>objA <System.Object>objB
  .<System.Windows.Forms.Form>FindForm()
  .<System.Windows.Forms.ListViewItem>FindItemWithText <System.String>text
  .<System.Windows.Forms.ListViewItem>FindItemWithText <System.String>text <System.Boolean>includeSubItemsInSearch <System.Int32>startIndex
  .<System.Windows.Forms.ListViewItem>FindItemWithText <System.String>text <System.Boolean>includeSubItemsInSearch <System.Int32>startIndex <System.Boolean>isPrefixSearch
  .<System.Windows.Forms.ListViewItem>FindNearestItem <System.Windows.Forms.SearchDirectionHint>dir <System.Drawing.Point>point
  .<System.Windows.Forms.ListViewItem>FindNearestItem <System.Windows.Forms.SearchDirectionHint>searchDirection <System.Int32>x <System.Int32>y
  .<System.Boolean>Focus()
  .[static]<System.Windows.Forms.Control>FromChildHandle <System.IntPtr>handle
  .[static]<System.Windows.Forms.Control>FromHandle <System.IntPtr>handle
  .<System.Windows.Forms.Control>GetChildAtPoint <System.Drawing.Point>pt
  .<System.Windows.Forms.Control>GetChildAtPoint <System.Drawing.Point>pt <System.Windows.Forms.GetChildAtPointSkip>skipValue
  .<System.Windows.Forms.IContainerControl>GetContainerControl()
  .<System.Int32>GetHashCode()
  .<System.Windows.Forms.ListViewItem>GetItemAt <System.Int32>x <System.Int32>y
  .<System.Drawing.Rectangle>GetItemRect <System.Int32>index
  .<System.Drawing.Rectangle>GetItemRect <System.Int32>index <System.Windows.Forms.ItemBoundsPortion>portion
  .<System.Object>GetLifetimeService()
  .<System.Windows.Forms.Control>GetNextControl <System.Windows.Forms.Control>ctl <System.Boolean>forward
  .<System.Drawing.Size>GetPreferredSize <System.Drawing.Size>proposedSize
  .<System.Type>GetType()
  .Hide()
  .<System.Windows.Forms.ListViewHitTestInfo>HitTest <System.Drawing.Point>point
  .<System.Windows.Forms.ListViewHitTestInfo>HitTest <System.Int32>x <System.Int32>y
  .<System.Object>InitializeLifetimeService()
  .Invalidate()
  .Invalidate <System.Drawing.Rectangle>rc
  .Invalidate <System.Boolean>invalidateChildren
  .Invalidate <System.Drawing.Region>region
  .Invalidate <System.Drawing.Region>region <System.Boolean>invalidateChildren
  .Invalidate <System.Drawing.Rectangle>rc <System.Boolean>invalidateChildren
  .<System.Object>Invoke <System.Delegate>method
  .<System.Object>Invoke <System.Delegate>method <System.Object[]>args
  .[static]<System.Boolean>IsKeyLocked <System.Windows.Forms.Keys>keyVal
  .[static]<System.Boolean>IsMnemonic <System.Char>charCode <System.String>text
  .PerformLayout()
  .PerformLayout <System.Windows.Forms.Control>affectedControl <System.String>affectedProperty
  .<System.Drawing.Point>PointToClient <System.Drawing.Point>p
  .<System.Drawing.Point>PointToScreen <System.Drawing.Point>p
  .<System.Windows.Forms.PreProcessControlState>PreProcessControlMessage <System.Windows.Forms.Message&>msg
  .<System.Boolean>PreProcessMessage <System.Windows.Forms.Message&>msg
  .<System.Drawing.Rectangle>RectangleToClient <System.Drawing.Rectangle>r
  .<System.Drawing.Rectangle>RectangleToScreen <System.Drawing.Rectangle>r
  .RedrawItems <System.Int32>startIndex <System.Int32>endIndex <System.Boolean>invalidateOnly
  .[static]<System.Boolean>ReferenceEquals <System.Object>objA <System.Object>objB
  .Refresh()
  .ResetBackColor()
  .ResetBindings()
  .ResetCursor()
  .ResetFont()
  .ResetForeColor()
  .ResetImeMode()
  .ResetRightToLeft()
  .ResetText()
  .ResumeLayout()
  .ResumeLayout <System.Boolean>performLayout
  .Scale <System.Single>ratio
  .Scale <System.Drawing.SizeF>factor
  .Scale <System.Single>dx <System.Single>dy
  .Select()
  .<System.Boolean>SelectNextControl <System.Windows.Forms.Control>ctl <System.Boolean>forward <System.Boolean>tabStopOnly <System.Boolean>nested <System.Boolean>wrap
  .SendToBack()
  .SetBounds <System.Int32>x <System.Int32>y <System.Int32>width <System.Int32>height
  .SetBounds <System.Int32>x <System.Int32>y <System.Int32>width <System.Int32>height <System.Windows.Forms.BoundsSpecified>specified
  .Show()
  .Sort()
  .SuspendLayout()
  .<System.String>ToString()
  .Update()

事件----------------------------------------------------------------------------------------------------------------

   on <control_name> AfterLabelEdit <System.Windows.Forms.LabelEditEventArgs>e do ( ... )
   on <control_name> AutoSizeChanged <System.EventArgs>e do ( ... )
   on <control_name> BackColorChanged <System.EventArgs>e do ( ... )
   on <control_name> BackgroundImageChanged <System.EventArgs>e do ( ... )
   on <control_name> BackgroundImageLayoutChanged <System.EventArgs>e do ( ... )
   on <control_name> BeforeLabelEdit <System.Windows.Forms.LabelEditEventArgs>e do ( ... )
   on <control_name> BindingContextChanged <System.EventArgs>e do ( ... )
   on <control_name> CacheVirtualItems <System.Windows.Forms.CacheVirtualItemsEventArgs>e do ( ... )
   on <control_name> CausesValidationChanged <System.EventArgs>e do ( ... )
   on <control_name> ChangeUICues <System.Windows.Forms.UICuesEventArgs>e do ( ... )
   on <control_name> Click <System.EventArgs>e do ( ... )
   on <control_name> ClientSizeChanged <System.EventArgs>e do ( ... )
   on <control_name> ColumnClick <System.Windows.Forms.ColumnClickEventArgs>e do ( ... )
   on <control_name> ColumnReordered <System.Windows.Forms.ColumnReorderedEventArgs>e do ( ... )
   on <control_name> ColumnWidthChanged <System.Windows.Forms.ColumnWidthChangedEventArgs>e do ( ... )
   on <control_name> ColumnWidthChanging <System.Windows.Forms.ColumnWidthChangingEventArgs>e do ( ... )
   on <control_name> ContextMenuChanged <System.EventArgs>e do ( ... )
   on <control_name> ContextMenuStripChanged <System.EventArgs>e do ( ... )
   on <control_name> ControlAdded <System.Windows.Forms.ControlEventArgs>e do ( ... )
   on <control_name> ControlRemoved <System.Windows.Forms.ControlEventArgs>e do ( ... )
   on <control_name> CursorChanged <System.EventArgs>e do ( ... )
   on <control_name> Disposed <System.EventArgs>e do ( ... )
   on <control_name> DockChanged <System.EventArgs>e do ( ... )
   on <control_name> DoubleClick <System.EventArgs>e do ( ... )
   on <control_name> DragDrop <System.Windows.Forms.DragEventArgs>e do ( ... )
   on <control_name> DragEnter <System.Windows.Forms.DragEventArgs>e do ( ... )
   on <control_name> DragLeave <System.EventArgs>e do ( ... )
   on <control_name> DragOver <System.Windows.Forms.DragEventArgs>e do ( ... )
   on <control_name> DrawColumnHeader <System.Windows.Forms.DrawListViewColumnHeaderEventArgs>e do ( ... )
   on <control_name> DrawItem <System.Windows.Forms.DrawListViewItemEventArgs>e do ( ... )
   on <control_name> DrawSubItem <System.Windows.Forms.DrawListViewSubItemEventArgs>e do ( ... )
   on <control_name> EnabledChanged <System.EventArgs>e do ( ... )
   on <control_name> Enter <System.EventArgs>e do ( ... )
   on <control_name> FontChanged <System.EventArgs>e do ( ... )
   on <control_name> ForeColorChanged <System.EventArgs>e do ( ... )
   on <control_name> GiveFeedback <System.Windows.Forms.GiveFeedbackEventArgs>e do ( ... )
   on <control_name> GotFocus <System.EventArgs>e do ( ... )
   on <control_name> HandleCreated <System.EventArgs>e do ( ... )
   on <control_name> HandleDestroyed <System.EventArgs>e do ( ... )
   on <control_name> HelpRequested <System.Windows.Forms.HelpEventArgs>hlpevent do ( ... )
   on <control_name> ImeModeChanged <System.EventArgs>e do ( ... )
   on <control_name> Invalidated <System.Windows.Forms.InvalidateEventArgs>e do ( ... )
   on <control_name> ItemActivate <System.EventArgs>e do ( ... )
   on <control_name> ItemCheck <System.Windows.Forms.ItemCheckEventArgs>e do ( ... )
   on <control_name> ItemChecked <System.Windows.Forms.ItemCheckedEventArgs>e do ( ... )
   on <control_name> ItemDrag <System.Windows.Forms.ItemDragEventArgs>e do ( ... )
   on <control_name> ItemMouseHover <System.Windows.Forms.ListViewItemMouseHoverEventArgs>e do ( ... )
   on <control_name> ItemSelectionChanged <System.Windows.Forms.ListViewItemSelectionChangedEventArgs>e do ( ... )
   on <control_name> KeyDown <System.Windows.Forms.KeyEventArgs>e do ( ... )
   on <control_name> KeyPress <System.Windows.Forms.KeyPressEventArgs>e do ( ... )
   on <control_name> KeyUp <System.Windows.Forms.KeyEventArgs>e do ( ... )
   on <control_name> Layout <System.Windows.Forms.LayoutEventArgs>e do ( ... )
   on <control_name> Leave <System.EventArgs>e do ( ... )
   on <control_name> LocationChanged <System.EventArgs>e do ( ... )
   on <control_name> LostFocus <System.EventArgs>e do ( ... )
   on <control_name> MarginChanged <System.EventArgs>e do ( ... )
   on <control_name> MouseCaptureChanged <System.EventArgs>e do ( ... )
   on <control_name> MouseClick <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> MouseDoubleClick <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> MouseDown <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> MouseEnter <System.EventArgs>e do ( ... )
   on <control_name> MouseHover <System.EventArgs>e do ( ... )
   on <control_name> MouseLeave <System.EventArgs>e do ( ... )
   on <control_name> MouseMove <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> MouseUp <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> MouseWheel <System.Windows.Forms.MouseEventArgs>e do ( ... )
   on <control_name> Move <System.EventArgs>e do ( ... )
   on <control_name> PaddingChanged <System.EventArgs>e do ( ... )
   on <control_name> Paint <System.Windows.Forms.PaintEventArgs>e do ( ... )
   on <control_name> ParentChanged <System.EventArgs>e do ( ... )
   on <control_name> PreviewKeyDown <System.Windows.Forms.PreviewKeyDownEventArgs>e do ( ... )
   on <control_name> QueryAccessibilityHelp <System.Windows.Forms.QueryAccessibilityHelpEventArgs>e do ( ... )
   on <control_name> QueryContinueDrag <System.Windows.Forms.QueryContinueDragEventArgs>e do ( ... )
   on <control_name> RegionChanged <System.EventArgs>e do ( ... )
   on <control_name> Resize <System.EventArgs>e do ( ... )
   on <control_name> RetrieveVirtualItem <System.Windows.Forms.RetrieveVirtualItemEventArgs>e do ( ... )
   on <control_name> RightToLeftChanged <System.EventArgs>e do ( ... )
   on <control_name> RightToLeftLayoutChanged <System.EventArgs>e do ( ... )
   on <control_name> SearchForVirtualItem <System.Windows.Forms.SearchForVirtualItemEventArgs>e do ( ... )
   on <control_name> SelectedIndexChanged <System.EventArgs>e do ( ... )
   on <control_name> SizeChanged <System.EventArgs>e do ( ... )
   on <control_name> StyleChanged <System.EventArgs>e do ( ... )
   on <control_name> SystemColorsChanged <System.EventArgs>e do ( ... )
   on <control_name> TabIndexChanged <System.EventArgs>e do ( ... )
   on <control_name> TabStopChanged <System.EventArgs>e do ( ... )
   on <control_name> TextChanged <System.EventArgs>e do ( ... )
   on <control_name> Validated <System.EventArgs>e do ( ... )
   on <control_name> Validating <System.ComponentModel.CancelEventArgs>e do ( ... )
   on <control_name> VirtualItemsSelectionRangeChanged <System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventArgs>e do ( ... )
   on <control_name> VisibleChanged <System.EventArgs>e do ( ... )

原文地址:https://www.cnblogs.com/softimagewht/p/3210277.html