Table of Contents

Method GetRealImage

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

GetRealImage(VisualControlState, bool?, Control?)

Retrieves the real image associated with the specified visual control state.

ImageSet? GetRealImage(VisualControlState state, bool? isDark = null, Control? control = null)

Parameters

state VisualControlState

The visual control state for which the image is to be retrieved.

isDark bool?

An optional parameter indicating whether the dark mode variant of the image should be retrieved. If null, the default variant is used.

control Control

An optional parameter specifying the control context for which the image is being retrieved. If null, the image is retrieved without a specific control context.

Returns

ImageSet

The ImageSet associated with the specified state, or null if no image is available for the given parameters.