Skip to main content

Component Plug-In SDK 2026 R1

Method GetPlugInIconImageSourceOrDefaultAsync

Last update: 19.06.2026

Namespace: Phoenix.ComponentBuilderAPI.Extensions
Assembly: Phoenix.ComponentBuilderAPI.dll

GetPlugInIconImageSourceOrDefaultAsync(IPlugInInstance)

Get the plug-in icon, if possible, or a default if the plug-in does not specify an icon. This maintains the original size of the icon image.

public static Task<ImageSource> GetPlugInIconImageSourceOrDefaultAsync(this IPlugInInstance plugin)

Parameters

plugin IPlugInInstance

The plug-in instance on which to operate.

Returns

Task<ImageSource>

An ImageSource suitable for display to the user.

Connect with Ansys