ImageCollection<TImage, TInfo>.Insert(Int32, String, String, String) Method
In This Article
Adds an image from the assembly to this collection, and places this image to the specific position.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public void Insert(
int index,
string key,
string assemblyImageResourceName,
string assemblyName
)
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The position the added image should have inside this collection. |
key | String | The name that the added image will have in this collection. |
assembly |
String | The complete image name that includes the assembly name and the extension. |
assembly |
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.
svgImageCollection2.Insert(3, "arrows", "ImagesProj.IncludedImages.arrows.svg", "ImagesProj");
See Also