C# Класс ImageGlass.ImageListView.ImageListView

Наследование: System.Windows.Forms.Control, IComponent
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CanPaint bool
GetVisibleItems bool>.Dictionary
IsItemDirty bool
IsItemVisible ItemVisibility
IsItemVisible bool
OnCacheErrorInternal void
OnItemCheckBoxClickInternal void
OnSelectionChangedInternal void
OnThumbnailCachedInternal void
OnThumbnailCachingInternal void
Refresh void
Refresh void
Refresh void
ResumePaint void
SuspendPaint void
UpdateItemDetailsInternal void
hScrollBar_Scroll void
lazyRefreshTimer_Tick void
vScrollBar_Scroll void

Открытые методы

Метод Описание
CheckAll ( ) : void

Marks all items as checked.

ClearSelection ( ) : void

Marks all items as unselected.

ClearThumbnailCache ( ) : void

Clears the thumbnail cache.

DisableAll ( ) : void

Marks all items as disabled.

EnableAll ( ) : void

Marks all items as enabled.

EnsureVisible ( int itemIndex ) : bool

Scrolls the image list view to ensure that the item with the specified index is visible on the screen.

FindString ( string s ) : int

Finds the first item that starts with the specified string.

FindString ( string s, int startIndex ) : int

Finds the first item that starts with the specified string.

HitTest ( Point pt, HitInfo &hitInfo ) : void

Determines the image list view element under the specified coordinates.

ImageListView ( ) : System

Initializes a new instance of the ImageListView class.

InvertCheckState ( ) : void

Reverses the check state of all items.

InvertSelection ( ) : void

Reverses the selection state of all items.

IsItemVisible ( ImageListViewItem item ) : ItemVisibility

Determines whether the specified item is visible on the screen.

ResetColors ( ) : void

Resets the colors to their default value.

ResetDefaultImage ( ) : void

Resets the default image to its default value.

ResetEmptyRatingImage ( ) : void

Resets the empty rating image to its default value.

ResetErrorImage ( ) : void

Resets the error image to its default value.

ResetHeaderFont ( ) : void

Resets the header font to its default value.

ResetRatingImage ( ) : void

Resets the rating image to its default value.

ResumeLayout ( ) : void

Resumes usual layout logic.

ResumeLayout ( bool performLayout ) : void

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

SelectAll ( ) : void

Marks all items as selected.

SetRenderer ( ImageListViewRenderer renderer ) : void

Sets the renderer for this instance.

SetRenderer ( ImageListViewRenderer renderer, bool keepColors ) : void

Sets the renderer for this instance.

ShouldSerializeColors ( ) : bool

Determines if the colors should be serialized.

ShouldSerializeDefaultImage ( ) : bool

Determines if the default image should be serialized.

ShouldSerializeEmptyRatingImage ( ) : bool

Determines if the empty rating image should be serialized.

ShouldSerializeErrorImage ( ) : bool

Determines if the error image should be serialized.

ShouldSerializeHeaderFont ( ) : bool

Determines if the header font should be serialized.

ShouldSerializeRatingImage ( ) : bool

Determines if the rating image should be serialized.

Sort ( ) : void

Sorts the items.

SuspendLayout ( ) : void

Temporarily suspends the layout logic for the control.

UncheckAll ( ) : void

Marks all items as unchecked.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the control and its child controls and optionally releases the managed resources.

IsInputKey ( Keys keyData ) : bool

Handles the IsInputKey event.

OnCacheError ( CacheErrorEventArgs e ) : void

Raises the CacheError event.

OnColumnClick ( ColumnClickEventArgs e ) : void

Raises the ColumnClick event.

OnColumnHover ( ColumnHoverEventArgs e ) : void

Raises the ColumnHover event.

OnColumnWidthChanged ( ColumnEventArgs e ) : void

Raises the ColumnWidthChanged event.

OnDragDrop ( DragEventArgs e ) : void

Handles the DragDrop event.

OnDragEnter ( DragEventArgs e ) : void

Handles the DragEnter event.

OnDragLeave ( EventArgs e ) : void

Handles the DragLeave event.

OnDragOver ( DragEventArgs e ) : void

Handles the DragOver event.

OnDropFiles ( DropFileEventArgs e ) : void

Raises the DropFiles event.

OnGotFocus ( EventArgs e ) : void

Handles the GotFocus event.

OnItemCheckBoxClick ( ItemEventArgs e ) : void

Raises the ItemCheckBoxClick event.

OnItemClick ( ItemClickEventArgs e ) : void

Raises the ItemClick event.

OnItemCollectionChanged ( ItemCollectionChangedEventArgs e ) : void

Raises the ItemCollectionChanged event.

OnItemDoubleClick ( ItemClickEventArgs e ) : void

Raises the ItemDoubleClick event.

OnItemHover ( ItemHoverEventArgs e ) : void

Raises the ItemHover event.

OnKeyDown ( KeyEventArgs e ) : void

Handles the KeyDown event.

OnKeyUp ( KeyEventArgs e ) : void

Handles the KeyUp event.

OnLostFocus ( EventArgs e ) : void

Handles the LostFocus event.

OnMouseDoubleClick ( MouseEventArgs e ) : void

Handles the MouseDoubleClick event.

OnMouseDown ( MouseEventArgs e ) : void

Handles the MouseDown event.

OnMouseLeave ( EventArgs e ) : void

Handles the MouseLeave event.

OnMouseMove ( MouseEventArgs e ) : void

Handles the MouseMove event.

OnMouseUp ( MouseEventArgs e ) : void

Handles the MouseUp event.

OnMouseWheel ( MouseEventArgs e ) : void

Handles the MouseWheel event.

OnPaint ( PaintEventArgs e ) : void

Handles the Paint event.

OnPaneResized ( PaneResizedEventArgs e ) : void

Raises the PaneReszied event.

OnPaneResizing ( PaneResizingEventArgs e ) : void

Raises the PaneResizing event.

OnResize ( EventArgs e ) : void

Handles the Resize event.

OnSelectionChanged ( EventArgs e ) : void

Raises the SelectionChanged event.

OnThumbnailCached ( ThumbnailCachedEventArgs e ) : void

Raises the ThumbnailCached event.

OnThumbnailCaching ( ThumbnailCachingEventArgs e ) : void

Raises the ThumbnailCaching event.

Приватные методы

Метод Описание
CanPaint ( ) : bool

Determines if the control can be painted.

GetVisibleItems ( ) : bool>.Dictionary

Gets the guids of visible items.

IsItemDirty ( Guid guid ) : bool

Determines whether the specified item is modified.

IsItemVisible ( int itemIndex ) : ItemVisibility

Determines whether the specified item is visible on the screen.

IsItemVisible ( Guid guid ) : bool

Determines whether the specified item is visible on the screen.

OnCacheErrorInternal ( Guid guid, Exception error, CacheThread cacheThread ) : void

Raises the CacheError event. This method is invoked from the thumbnail thread.

OnItemCheckBoxClickInternal ( ImageListViewItem item ) : void

Raises the ItemCheckBoxClick event.

OnSelectionChangedInternal ( ) : void

Raises the SelectionChanged event.

OnThumbnailCachedInternal ( Guid guid, Image thumbnail, Size size, bool thumbnailImage ) : void

Raises the ThumbnailCached event. This method is invoked from the thumbnail thread.

OnThumbnailCachingInternal ( Guid guid, Size size ) : void

Raises the ThumbnailCaching event. This method is invoked from the thumbnail thread.

Refresh ( ) : void

Redraws the owner control.

Refresh ( bool force ) : void

Redraws the owner control.

Refresh ( bool force, bool lazy ) : void

Refreshes the control.

ResumePaint ( ) : void

Resumes painting. This call must be matched by a prior SuspendPaint call.

SuspendPaint ( ) : void

Suspends painting until a matching ResumePaint call is made.

UpdateItemDetailsInternal ( Guid guid, Utility details ) : void

Updates item details. This method is invoked from the item cache thread.

hScrollBar_Scroll ( object sender, ScrollEventArgs e ) : void

Handles the Scroll event of the hScrollBar control.

lazyRefreshTimer_Tick ( object sender, EventArgs e ) : void

Handles the Tick event of the lazyRefreshTimer control.

vScrollBar_Scroll ( object sender, ScrollEventArgs e ) : void

Handles the Scroll event of the vScrollBar control.

Описание методов

CheckAll() публичный Метод

Marks all items as checked.
public CheckAll ( ) : void
Результат void

ClearSelection() публичный Метод

Marks all items as unselected.
public ClearSelection ( ) : void
Результат void

ClearThumbnailCache() публичный Метод

Clears the thumbnail cache.
public ClearThumbnailCache ( ) : void
Результат void

DisableAll() публичный Метод

Marks all items as disabled.
public DisableAll ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the control and its child controls and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; /// false to release only unmanaged resources.
Результат void

EnableAll() публичный Метод

Marks all items as enabled.
public EnableAll ( ) : void
Результат void

EnsureVisible() публичный Метод

Scrolls the image list view to ensure that the item with the specified index is visible on the screen.
public EnsureVisible ( int itemIndex ) : bool
itemIndex int The index of the item to make visible.
Результат bool

FindString() публичный Метод

Finds the first item that starts with the specified string.
public FindString ( string s ) : int
s string The text to search for.
Результат int

FindString() публичный Метод

Finds the first item that starts with the specified string.
public FindString ( string s, int startIndex ) : int
s string The text to search for.
startIndex int The zero-based index of the first /// item to be searched. Set to zero to search from the /// beginning of the control.
Результат int

HitTest() публичный Метод

Determines the image list view element under the specified coordinates.
public HitTest ( Point pt, HitInfo &hitInfo ) : void
pt Point The client coordinates of the point to be tested.
hitInfo HitInfo Details of the hit test.
Результат void

ImageListView() публичный Метод

Initializes a new instance of the ImageListView class.
public ImageListView ( ) : System
Результат System

InvertCheckState() публичный Метод

Reverses the check state of all items.
public InvertCheckState ( ) : void
Результат void

InvertSelection() публичный Метод

Reverses the selection state of all items.
public InvertSelection ( ) : void
Результат void

IsInputKey() защищенный Метод

Handles the IsInputKey event.
protected IsInputKey ( Keys keyData ) : bool
keyData Keys One of the values.
Результат bool

IsItemVisible() публичный Метод

Determines whether the specified item is visible on the screen.
public IsItemVisible ( ImageListViewItem item ) : ItemVisibility
item ImageListViewItem The item to test.
Результат ItemVisibility

OnCacheError() защищенный Метод

Raises the CacheError event.
protected OnCacheError ( CacheErrorEventArgs e ) : void
e CacheErrorEventArgs A CacheErrorEventArgs that contains event data.
Результат void

OnColumnClick() защищенный Метод

Raises the ColumnClick event.
protected OnColumnClick ( ColumnClickEventArgs e ) : void
e ColumnClickEventArgs A ColumnClickEventArgs that contains event data.
Результат void

OnColumnHover() защищенный Метод

Raises the ColumnHover event.
protected OnColumnHover ( ColumnHoverEventArgs e ) : void
e ColumnHoverEventArgs A ColumnClickEventArgs that contains event data.
Результат void

OnColumnWidthChanged() защищенный Метод

Raises the ColumnWidthChanged event.
protected OnColumnWidthChanged ( ColumnEventArgs e ) : void
e ColumnEventArgs A ColumnEventArgs that contains event data.
Результат void

OnDragDrop() защищенный Метод

Handles the DragDrop event.
protected OnDragDrop ( DragEventArgs e ) : void
e DragEventArgs A that contains the event data.
Результат void

OnDragEnter() защищенный Метод

Handles the DragEnter event.
protected OnDragEnter ( DragEventArgs e ) : void
e DragEventArgs A that contains the event data.
Результат void

OnDragLeave() защищенный Метод

Handles the DragLeave event.
protected OnDragLeave ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OnDragOver() защищенный Метод

Handles the DragOver event.
protected OnDragOver ( DragEventArgs e ) : void
e DragEventArgs A that contains the event data.
Результат void

OnDropFiles() защищенный Метод

Raises the DropFiles event.
protected OnDropFiles ( DropFileEventArgs e ) : void
e DropFileEventArgs A DropFileEventArgs that contains event data.
Результат void

OnGotFocus() защищенный Метод

Handles the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OnItemCheckBoxClick() защищенный Метод

Raises the ItemCheckBoxClick event.
protected OnItemCheckBoxClick ( ItemEventArgs e ) : void
e ItemEventArgs A ItemEventArgs that contains event data.
Результат void

OnItemClick() защищенный Метод

Raises the ItemClick event.
protected OnItemClick ( ItemClickEventArgs e ) : void
e ItemClickEventArgs A ItemClickEventArgs that contains event data.
Результат void

OnItemCollectionChanged() защищенный Метод

Raises the ItemCollectionChanged event.
protected OnItemCollectionChanged ( ItemCollectionChangedEventArgs e ) : void
e ItemCollectionChangedEventArgs A ItemCollectionChangedEventArgs that contains event data.
Результат void

OnItemDoubleClick() защищенный Метод

Raises the ItemDoubleClick event.
protected OnItemDoubleClick ( ItemClickEventArgs e ) : void
e ItemClickEventArgs A ItemClickEventArgs that contains event data.
Результат void

OnItemHover() защищенный Метод

Raises the ItemHover event.
protected OnItemHover ( ItemHoverEventArgs e ) : void
e ItemHoverEventArgs A ItemClickEventArgs that contains event data.
Результат void

OnKeyDown() защищенный Метод

Handles the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs A that contains the event data.
Результат void

OnKeyUp() защищенный Метод

Handles the KeyUp event.
protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs A that contains the event data.
Результат void

OnLostFocus() защищенный Метод

Handles the LostFocus event.
protected OnLostFocus ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OnMouseDoubleClick() защищенный Метод

Handles the MouseDoubleClick event.
protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs An that contains the event data.
Результат void

OnMouseDown() защищенный Метод

Handles the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseLeave() защищенный Метод

Handles the MouseLeave event.
protected OnMouseLeave ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OnMouseMove() защищенный Метод

Handles the MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseUp() защищенный Метод

Handles the MouseUp event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseWheel() защищенный Метод

Handles the MouseWheel event.
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnPaint() защищенный Метод

Handles the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
Результат void

OnPaneResized() защищенный Метод

Raises the PaneReszied event.
protected OnPaneResized ( PaneResizedEventArgs e ) : void
e PaneResizedEventArgs A PaneResizedEventArgs that contains event data.
Результат void

OnPaneResizing() защищенный Метод

Raises the PaneResizing event.
protected OnPaneResizing ( PaneResizingEventArgs e ) : void
e PaneResizingEventArgs A PaneResizingEventArgs that contains event data.
Результат void

OnResize() защищенный Метод

Handles the Resize event.
protected OnResize ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OnSelectionChanged() защищенный Метод

Raises the SelectionChanged event.
protected OnSelectionChanged ( EventArgs e ) : void
e EventArgs A EventArgs that contains event data.
Результат void

OnThumbnailCached() защищенный Метод

Raises the ThumbnailCached event.
protected OnThumbnailCached ( ThumbnailCachedEventArgs e ) : void
e ThumbnailCachedEventArgs A ThumbnailCachedEventArgs that contains event data.
Результат void

OnThumbnailCaching() защищенный Метод

Raises the ThumbnailCaching event.
protected OnThumbnailCaching ( ThumbnailCachingEventArgs e ) : void
e ThumbnailCachingEventArgs A ThumbnailCachingEventArgs that contains event data.
Результат void

ResetColors() публичный Метод

Resets the colors to their default value.
public ResetColors ( ) : void
Результат void

ResetDefaultImage() публичный Метод

Resets the default image to its default value.
public ResetDefaultImage ( ) : void
Результат void

ResetEmptyRatingImage() публичный Метод

Resets the empty rating image to its default value.
public ResetEmptyRatingImage ( ) : void
Результат void

ResetErrorImage() публичный Метод

Resets the error image to its default value.
public ResetErrorImage ( ) : void
Результат void

ResetHeaderFont() публичный Метод

Resets the header font to its default value.
public ResetHeaderFont ( ) : void
Результат void

ResetRatingImage() публичный Метод

Resets the rating image to its default value.
public ResetRatingImage ( ) : void
Результат void

ResumeLayout() публичный Метод

Resumes usual layout logic.
public ResumeLayout ( ) : void
Результат void

ResumeLayout() публичный Метод

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.
public ResumeLayout ( bool performLayout ) : void
performLayout bool true to execute pending layout requests; otherwise, false.
Результат void

SelectAll() публичный Метод

Marks all items as selected.
public SelectAll ( ) : void
Результат void

SetRenderer() публичный Метод

Sets the renderer for this instance.
public SetRenderer ( ImageListViewRenderer renderer ) : void
renderer ImageListViewRenderer An to assign to the control.
Результат void

SetRenderer() публичный Метод

Sets the renderer for this instance.
public SetRenderer ( ImageListViewRenderer renderer, bool keepColors ) : void
renderer ImageListViewRenderer An to assign to the control.
keepColors bool true to keep current colors; otherwise false.
Результат void

ShouldSerializeColors() публичный Метод

Determines if the colors should be serialized.
public ShouldSerializeColors ( ) : bool
Результат bool

ShouldSerializeDefaultImage() публичный Метод

Determines if the default image should be serialized.
public ShouldSerializeDefaultImage ( ) : bool
Результат bool

ShouldSerializeEmptyRatingImage() публичный Метод

Determines if the empty rating image should be serialized.
public ShouldSerializeEmptyRatingImage ( ) : bool
Результат bool

ShouldSerializeErrorImage() публичный Метод

Determines if the error image should be serialized.
public ShouldSerializeErrorImage ( ) : bool
Результат bool

ShouldSerializeHeaderFont() публичный Метод

Determines if the header font should be serialized.
public ShouldSerializeHeaderFont ( ) : bool
Результат bool

ShouldSerializeRatingImage() публичный Метод

Determines if the rating image should be serialized.
public ShouldSerializeRatingImage ( ) : bool
Результат bool

Sort() публичный Метод

Sorts the items.
public Sort ( ) : void
Результат void

SuspendLayout() публичный Метод

Temporarily suspends the layout logic for the control.
public SuspendLayout ( ) : void
Результат void

UncheckAll() публичный Метод

Marks all items as unchecked.
public UncheckAll ( ) : void
Результат void