ImageListStreamer ImageListStreamer ImageListStreamer ImageListStreamer Class


提供的数据部分ImageListProvides the data portion of an ImageList.

public ref class ImageListStreamer sealed : IDisposable, System::Runtime::Serialization::ISerializable
public sealed class ImageListStreamer : IDisposable, System.Runtime.Serialization.ISerializable
type ImageListStreamer = class
    interface ISerializable
    interface IDisposable
Public NotInheritable Class ImageListStreamer
Implements IDisposable, ISerializable


这是一个密封的类,因此不能从它继承。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属性的ImageListAn ImageListStreamer is returned by the ImageStream property of the ImageList. 但是,不能使用此类将图像加载到ImageList通过直接分配的控件ImageStream属性从一个ImageListHowever, 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() Dispose() Dispose() Dispose()

释放 ImageListStreamer 类的当前实例所使用的所有资源。Releases all resources used by the current instance of the ImageListStreamer class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

使用将目标对象序列化所需的数据填充 SerializationInfoPopulates a SerializationInfo with the data needed to serialize the target object.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)