Back to Devexpress

ImageCollection<TImage, TInfo>.Add(String, String, String) Method

windowsforms-devexpress-dot-utils-dot-imagecollection-2-dot-add-x28-system-dot-string-system-dot-string-system-dot-string-x29.md

latest2.1 KB
Original Source

ImageCollection<TImage, TInfo>.Add(String, String, String) Method

Adds an image from the resource assembly to this collection.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public void Add(
    string key,
    string assemblyImageResourceName,
    string assemblyName
)
vb
Public Sub Add(
    key As String,
    assemblyImageResourceName As String,
    assemblyName As String
)

Parameters

NameTypeDescription
keyString

The name that the added image will have in this collection.

| | assemblyImageResourceName | String |

The complete image name that includes the assembly name and the extension.

| | assemblyName | String |

The assembly name.

|

Remarks

The code below illustrates how to add the vector “arrows” image that is stored in the “IncludedImages” folder of the referenced “ImagesProj” assembly.

csharp
svgImageCollection2.Add("arrows", "ImagesProj.IncludedImages.arrows.svg", "ImagesProj");
vb
svgImageCollection2.Add("arrows", "ImagesProj.IncludedImages.arrows.svg", "ImagesProj")

See Also

ImageCollection<TImage, TInfo> Class

ImageCollection<TImage, TInfo> Members

DevExpress.Utils Namespace