Skip to main content
All docs
V26.1
  • 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.v26.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public static SvgImage FromResources(
        string name,
        Assembly assembly
    )

    Parameters

    Name Type Description
    name String

    The name an icon has in resources.

    assembly 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