SnapInImageList Class
Encapsulates the characteristics of a snap-in image list. It triggers events when images are added to or removed from the collection.
Namespace: Microsoft.ManagementConsole
Assembly: Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)
Inheritance Hierarchy
System.Object
Microsoft.ManagementConsole.SnapInImageList
Syntax
public sealed class SnapInImageList : ICollection, IEnumerable
public ref class SnapInImageList sealed : ICollection, IEnumerable
[<Sealed>]
type SnapInImageList =
class
interface ICollection
interface IEnumerable
end
Public NotInheritable Class SnapInImageList
Implements ICollection, IEnumerable
Constructors
Name | Description | |
---|---|---|
SnapInImageList() | Initializes a new instance of the SnapInImageList class. |
Properties
Name | Description | |
---|---|---|
Count | Gets the number of images that are currently in the image list. |
|
Empty | Gets a Boolean value that indicates whether the image list is empty. |
|
IsSynchronized | Gets a value that indicates whether access to the ICollection is synchronized (thread-safe). |
|
Item[Int32] | Gets or sets the image at a specific index in the snap-in image list. |
|
SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
|
TransparentColor | Gets or sets the transparency color. For a description of the TransparentColor parameter, see Color Structure. |
Methods
Name | Description | |
---|---|---|
Add(Icon) | Adds a specified icon to the image list for the snap-in. |
|
Add(Image) | Adds the specified image to the image list. |
|
Add(Image, Color) | Adds the specified image to the image list. This method also specifies the transparent color that is used to mask the image that is to be added. |
|
AddRange(Icon[]) | Adds a range of icons to the image list for the snap-in. |
|
AddRange(Image[]) | Adds the specified range of images to the image list. |
|
AddStrip(Image) | Adds an image strip to the specified image. An image strip is a collection of images. |
|
Clear() | Removes all images and masks from the snap-in image list. |
|
CopyTo(Array, Int32) | Copies the elements of the ICollection to an array, starting at a particular array index. |
|
CopyTo(SnapInImageList, Int32) | Copies the elements of the ICollection to an array, starting at a particular array index. |
|
Equals(Object) | (Inherited from Object.) |
|
GetEnumerator() | Returns an enumerator that can be used to iterate through the image list collection. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
RemoveAt(Int32) | Removes a specified image from the image list. |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
SnapIn
Microsoft.ManagementConsole Namespace
Return to top