Class ImageListView.ImageListViewGroup
Represents the collection of items in a group in an ImageListView control.
Inheritance
Implements
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class ImageListViewGroup : IEnumerable<ImageListViewItem>, IEnumerable, IComparable<ImageListView.ImageListViewGroup>
Properties
| Improve this Doc View SourceCollapsed
Gets or sets whether the group is collapsed.
Declaration
public bool Collapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FirstItemIndex
Gets the index of the first item.
Declaration
public int FirstItemIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ItemCount
Gets the item count.
Declaration
public int ItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LastItemIndex
Gets the index of the last item.
Declaration
public int LastItemIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
Gets the name of the group.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCompareTo(ImageListView.ImageListViewGroup)
Compares the current object with another object of the same type.
Declaration
public int CompareTo(ImageListView.ImageListViewGroup other)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewGroup | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings:
Value
Meaning
Less than zero
This object is less than the |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<ImageListViewItem> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ImageListViewItem> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
ItemIndicesInRectangle(Rectangle, ScrollOrientation, Size)
Determines which items in the group intersect with the given selection rectangle.
Declaration
public List<int> ItemIndicesInRectangle(Rectangle rec, ScrollOrientation orientation, Size itemSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rec | The selection rectangle. |
System.Windows.Forms.ScrollOrientation | orientation | Scroll orientation of the owner control. |
System.Drawing.Size | itemSize | The size of one item including margins. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | List of item indices. |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |