Skip to main content
A newer version of this page is available. .

SvgImage.FromResources(String, Assembly) Method

Creates a new SvgImage object from a vector image stored in project resources.

Namespace: DevExpress.Utils.Svg

Assembly: DevExpress.Data.v19.2.dll

Declaration

public static SvgImage FromResources(
    string name,
    Assembly asm
)

Parameters

Name Type Description
name String

The name an icon has in resources.

asm Assembly

The assembly name.

Returns

Type Description
SvgImage

A newly created SvgImage.

Remarks

The code below illustrates an example.

SvgImage img2 = SvgImage.FromResources("MyImage2.svg", typeof(mainForm).Assembly);
See Also