Table of Contents

Struct CachedSvgImage<TImage>

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

Storage for SvgImage conversions to Image for the different visual states and light/dark flags.

public struct CachedSvgImage<TImage> where TImage : class

Type Parameters

TImage

Constructors

CachedSvgImage()

Initializes a new instance of the CachedSvgImage<TImage> struct.

Properties

SvgImage

Gets or sets svg.

SvgSize

Gets or sets svg size.

Methods

Assign(in CachedSvgImage<TImage>)

Assigns the values from the specified CachedSvgImage<TImage> instance to this instance.

Clone()

Creates a new instance of CachedSvgImage<TImage> that is a copy of the current instance.

GetImage(VisualControlState, bool?)

Gets image for the specified item state and light/dark theme flag.

HasImage(VisualControlState, bool?)

Gets whether image exists for the specified item state and light/dark theme flag.

RealSvgHeight(Control?)

Gets real svg height in pixels using SvgSize and other settings.

ResetCachedImages()

Resets the cached image data to its initial state.

SetImage(VisualControlState, object?, bool?)

Sets image for the specified color theme light/dark theme flag.

UpdateImage(VisualControlState, bool, Control?)

Saves svg as Image to the specified state.

UpdateImageSet(VisualControlState, bool, Control?)

Saves svg as ImageSet to the specified state.