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. ImageListStreamer ImageStream 屬性ImageList會傳回。An ImageListStreamer is returned by the ImageStream property of the ImageList. 不過, 您無法使用這個類別, 直接從一個ImageList ImageStream ImageList指派屬性, 將影像載入控制項。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)

適用於