Table of Contents

Method FromSvgUrlForToolbar

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

FromSvgUrlForToolbar(string, Control, Color?)

Initializes a new instance of the ImageSet class from the specified url which points to svg file or resource.

public static ImageSet FromSvgUrlForToolbar(string url, Control control, Color? color = null)

Parameters

url string

The file or embedded resource url with Svg data used to load the image.

control Control

Control which GetDPI() method is used to get DPI.

color Color

Svg fill color. Optional. If provided, svg fill color is changed to the specified value.

Returns

ImageSet

ImageSet instance loaded from Svg data for use on the toolbars.

Remarks

This is similar to FromSvgUrl(string, int, int, Color?) but uses GetDPI() and GetDefaultImageSize(double) to get appropriate image size which is best suitable for toolbars.