Table of Contents

Method GetNormalAndDisabledSvg

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

GetNormalAndDisabledSvg(string, Control, SizeI?)

Initializes a tuple with two instances of the ImageSet class from the specified url which contains svg data. Images are loaded for the normal and disabled states using GetSvgColor(KnownSvgColor).

public static (ImageSet Normal, ImageSet Disabled) GetNormalAndDisabledSvg(string url, Control control, SizeI? size = null)

Parameters

url string

"embres" or "file" url with svg image data.

control Control

Control which GetSvgColor(KnownSvgColor) method is called to get color information.

size SizeI?

Image size in pixels. If it is not specified, GetDefaultImageSize(Control?) is used to get image size.

Returns

(ImageSet Normal, ImageSet Disabled)