ImageListStreamer 類別

定義

提供 ImageList 的資料部分。Provides the data portion of an ImageList.

public ref class ImageListStreamer sealed : IDisposable, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class ImageListStreamer : IDisposable, System.Runtime.Serialization.ISerializable
type ImageListStreamer = class
    interface ISerializable
    interface IDisposable
Public NotInheritable Class ImageListStreamer
Implements IDisposable, ISerializable
繼承
ImageListStreamer
屬性
實作

備註

這是密封的類別,因此您不能從它繼承。This is a sealed class, so you can not inherit from it. 此外,此函式是私用的,因此您無法建立它的新實例。Also, the constructor is private, so you cannot create a new instance of it. ImageListImageStream 屬性會傳回 ImageListStreamerAn ImageListStreamer is returned by the ImageStream property of the ImageList. 不過,您無法使用這個類別將影像載入 ImageList 控制項,方法是直接從一個 ImageList指派 ImageStream 屬性。However, you cannot use this class to load images to an ImageList control by directly assigning the ImageStream property from one ImageList. 相反地,您應該直接將一個 ImageList 實例指派給另一個(例如,ImageList2 = ImageList1)Instead you should directly assign one ImageList instance to another (for example, ImageList2 = ImageList1).

方法

Dispose()

釋放 ImageListStreamer 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the ImageListStreamer class.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

將序列化目標物件所需的資料填入 SerializationInfoPopulates a SerializationInfo with the data needed to serialize the target object.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於