Table of Contents

Class EnumImages<TKey>

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

Contains small and large images indexed by the enum type.

public class EnumImages<TKey> : ImmutableObject, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IImmutableObject, IDisposableObject, IDisposable, IBaseObject where TKey : struct, Enum, IConvertible

Type Parameters

TKey

Type of the enum.

Inheritance
EnumImages<TKey>
Implements

Properties

LargeSvgSize

Gets or sets size of the large svg image.

SmallSvgSize

Gets or sets size of the small svg image.

Methods

AssignImageNames(bool)

Assigns all image names from small to large images or backwards.

FormatImageNames(string, bool)

Calls Format(string, object) on small or large image names.

GetImage(TKey, bool)

Gets small or large image for the specified index.

GetImageName(TKey, bool)

Gets small or large image name for the specified index.

GetLargeImage(TKey)

Gets large image for the specified index.

GetSmallImage(TKey)

Gets small image for the specified index.

GetSvgImage(TKey)

Retrieves the SvgImage associated with the specified key.

GetSvgSize(bool)

Gets size of the svg image.

HasSvgImages()

Determines whether the collection contains any non-null SVG images.

LoadFromResource(Assembly, TKey, bool)

Loads the specified image from the assembly resource.

LoadImagesFromResource(Assembly, bool)

Loads all small or large images from the assembly resource.

LoadLargeImagesFromResource(Assembly)

Loads large images from the specified assembly's embedded resources.

LoadSmallAndLargeImagesFromResource(Assembly)

Loads both small and large images from the specified assembly's embedded resources.

LoadSmallImagesFromResource(Assembly)

Loads small images from the specified assembly's embedded resources.

LoadSvgFromResource(Assembly, bool)

Loads SVG images from the specified assembly and processes them based on the provided size option.

LoadSvgFromResource(Assembly, TKey, bool)

Loads an SVG image from an embedded resource within the specified assembly.

Log()

Logs object information.

ReloadAllFromSvg()

Reloads all images from their corresponding SVG sources.

ReloadFromSvg(TKey, bool)

Reloads an image from an SVG source and updates it with the specified size and color.

ReloadLargeImagesFromSvg()

Reloads and regenerates large images from their corresponding SVG sources.

ReloadSmallImagesFromSvg()

Reloads and regenerates the small-sized images from their corresponding SVG sources.

ResetCachedImages()

Resets all cached images within the current instance and its child elements. This is done only if the current instance contains any SVG images.

SetImage(TKey, Image?, bool)

Sets small or large image for the specified index.

SetImageName(TKey, string?, bool)

Sets small or large image name for the specified index.

SetLargeImage(TKey, Image?)

Sets large image for the specified index.

SetSmallImage(TKey, Image?)

Sets small image for the specified index.

SetSvgColor(TKey, Color?)

Sets color of the svg image.

SetSvgImage(TKey, SvgImage?)

Associates the specified SVG image with the given key in the collection.