Back to Devexpress

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

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

latest1.6 KB
Original Source

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

Adds a specific image 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,
    TImage image
)
vb
Public Sub Add(
    key As String,
    image As TImage
)

Parameters

NameTypeDescription
keyString

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

| | image | TImage |

The image to add.

|

Remarks

The code below copies the first image of one SvgImageCollection to another collection.

csharp
svgImageCollection1.Add("copied_img", svgImageCollection2[0]);
vb
svgImageCollection1.Add("copied_img", svgImageCollection2(0))

See Also

ImageCollection<TImage, TInfo> Class

ImageCollection<TImage, TInfo> Members

DevExpress.Utils Namespace