Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SvgImageCollection.FromResources(String, Assembly) Method

Generates a new SvgImageCollection instance filled with images from a project assembly.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public static SvgImageCollection FromResources(
    string resourceBaseName,
    Assembly assembly
)

#Parameters

Name Type Description
resourceBaseName String

A String value that specifies the path to assembly images within a project.

assembly Assembly

An Assembly that contains the target embedded resource images.

#Returns

Type Description
SvgImageCollection

A SvgImageCollection object that contains images from a project assembly.

#Remarks

The code below illustrates how to initialize a collection that stores vector images, located under the “WindowsFormsApp1\Images” folder. Note that in VB.NET you should specify the root folder name only, while in C# the full path name is required.

SvgImageCollection collection = SvgImageCollection.FromResources("WindowsFormsApp1.Images", typeof(Form3).Assembly);

See the SvgImageCollection class description to learn more.

See Also