ImageListStreamer 类

定义

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

public ref class ImageListStreamer sealed : IDisposable, System::Runtime::Serialization::ISerializable
public ref class ImageListStreamer sealed : System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class ImageListStreamer : IDisposable, System.Runtime.Serialization.ISerializable
[System.Serializable]
public sealed class ImageListStreamer : System.Runtime.Serialization.ISerializable
type ImageListStreamer = class
    interface ISerializable
    interface IDisposable
type ImageListStreamer = class
    interface ISerializable
Public NotInheritable Class ImageListStreamer
Implements IDisposable, ISerializable
Public NotInheritable Class ImageListStreamer
Implements 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分配 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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于