Skip to main content

SliderImageCollection.Add(Image) Method

Adds an item to the current SliderImageCollection collection and returns its index.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public int Add(
    Image image
)

Parameters

Name Type Description
image Image

An Image object to be added to the current SliderImageCollection.

Returns

Type Description
Int32

An integer value indicating an index of the item added.

Remarks

The Add method adds an Image object to the current SliderImageCollection and places it at the end of the collection. To manually define a position for placement of the image, use the SliderImageCollection.Insert property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(Image) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also