ImageCollection<TImage, TInfo>.Insert(Int32, String, String, String) Method
Adds an image from the assembly to this collection, and places this image to the specific position.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.1.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. |
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.
svgImageCollection2.Insert(3, "arrows", "ImagesProj.IncludedImages.arrows.svg", "ImagesProj");
See Also