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.v20.1.dll

Declaration

public static SvgImage FromResources(
    string name,
    Assembly asm
)
Public Shared Function FromResources(
    name As String,
    asm As Assembly
) As SvgImage

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