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
System_CAPS_pubmethod SnapInImageList()

Initializes a new instance of the SnapInImageList class.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of images that are currently in the image list.

System_CAPS_pubproperty Empty

Gets a Boolean value that indicates whether the image list is empty.

System_CAPS_pubproperty IsSynchronized

Gets a value that indicates whether access to the ICollection is synchronized (thread-safe).

System_CAPS_pubproperty Item[Int32]

Gets or sets the image at a specific index in the snap-in image list.

System_CAPS_pubproperty SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

System_CAPS_pubproperty TransparentColor

Gets or sets the transparency color. For a description of the TransparentColor parameter, see Color Structure.

Methods

Name Description
System_CAPS_pubmethod Add(Icon)

Adds a specified icon to the image list for the snap-in.

System_CAPS_pubmethod Add(Image)

Adds the specified image to the image list.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod AddRange(Icon[])

Adds a range of icons to the image list for the snap-in.

System_CAPS_pubmethod AddRange(Image[])

Adds the specified range of images to the image list.

System_CAPS_pubmethod AddStrip(Image)

Adds an image strip to the specified image. An image strip is a collection of images.

System_CAPS_pubmethod Clear()

Removes all images and masks from the snap-in image list.

System_CAPS_pubmethod CopyTo(Array, Int32)

Copies the elements of the ICollection to an array, starting at a particular array index.

System_CAPS_pubmethod CopyTo(SnapInImageList, Int32)

Copies the elements of the ICollection to an array, starting at a particular array index.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that can be used to iterate through the image list collection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod RemoveAt(Int32)

Removes a specified image from the image list.

System_CAPS_pubmethod 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