Table of Contents

Class ImageContainer<T>

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Base class for the image containers.

public abstract class ImageContainer<T> : HandledObject<T>, IBaseObject, IDisposableObject, INotifyPropertyChanged, IImageContainer, IDisposable where T : class, IImageContainer

Type Parameters

T

Type of the handler.

Inheritance
ImageContainer<T>
Implements
Derived

Constructors

ImageContainer(bool)

Initializes a new instance of the ImageContainer<T> class.

Properties

Images

Gets the Image collection for this image list.

IsDummy

Gets whether this object is dummy and doesn't do anything.

IsOk

Gets whether object is ok.

Methods

Add(Image?)

Adds image.

Add(Stream?)

Adds image from the stream.

Clear()

Removes all images from the container.

OnChanged()

Called when Changed event is raised.

OnImageInserted(object?, int, Image)

Called when image is inserted in the container.

OnImageRemoved(object?, int, Image)

Called when image is removed from the container.

RaiseChanged()

Raises Changed event and OnChanged() method.

Remove(int)

Removes image from the container.

Events

Changed

Occurs when object is changed (image is added or removed).