ImageListStreamer ImageListStreamer ImageListStreamer ImageListStreamer Class

定义

提供 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
继承
ImageListStreamerImageListStreamerImageListStreamerImageListStreamer
属性
实现

注解

这是一个密封类, 因此不能从它继承。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. ImageListStreamerImageStream的属性返回ImageListAn 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() 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)

适用于