Class ImageObjectCollection
Observable collection of image objects
Inheritance
System.Object
ImageObjectCollection
Implements
IronSoftware.Abstractions.Pdf.IDocumentImageObjectCollection<
ImageObject>
System.Collections.IEnumerable
IronSoftware.Abstractions.IJsonSerializable
Assembly: IronPdf.dll
Syntax
public class ImageObjectCollection : ObservableCollection<ImageObject>, IPdfImageObjectCollection
Working with Iron Software API in IronPDF runs through ImageObjectCollection. It represents observable collection of image objects.
ImageObjectCollection matters when an application needs to configure or invoke Iron Software API from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use ImageObjectCollection, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include IsReadOnly, Items. Assign options or invoke methods on the instance to configure or perform the operation. The image to PDF covers typical usage in C# end to end.
using IronPdf;
// Obtain ImageObjectCollection from the relevant entry point in the IronPDF API
void Configure(ImageObjectCollection instance)
{
var current = instance.IsReadOnly;
instance.Add();
}
For the broader workflow, see the PDF image flatten csharp guide in the IronPDF C# documentation. For broader context, the Iron Software API portion of the IronPDF C# API contains related types that work with ImageObjectCollection directly. ImageObjectCollection instances inherit additional members from ObservableCollection<ImageObject> that may be relevant in advanced scenarios. In application code, treat ImageObjectCollection as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant ImageObjectCollection property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of ImageObjectCollection. Application code typically obtains or instantiates a single ImageObjectCollection and shares it across multiple IronPDF operations rather than recreating it per call.
Properties
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Items
Declaration
public IList<ImageObject> Items { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.IList<ImageObject> |
|
Methods
Add(ImageObject)
Declaration
public void Add(ImageObject item)
Parameters
Clear()
Declaration
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Remove(ImageObject)
Declaration
public bool Remove(ImageObject item)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
ToJson()
Declaration
Returns
| Type |
Description |
| System.String |
|
Implements
IronSoftware.Abstractions.Pdf.IDocumentImageObjectCollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
IronSoftware.Abstractions.IJsonSerializable