Interface IImageContent
Inherited Members
Namespace: IronPPT.Interfaces
Assembly: IronPPT.dll
Syntax
public interface IImageContent : IContentElement
The raw payload behind a slide picture lives on IImageContent. The contract holds the encoded data for an image, the bytes a developer reads or replaces when working with the picture's source rather than its placement on the slide. You reach for it when exporting an image's data, swapping the underlying bytes, or inspecting what a picture actually contains.
Image content is reached through the picture that owns it rather than built in isolation, so an IImageContent is normally obtained from an IImage through its ImageData property and then read or assigned. The contract declares one member: Content, a string carrying the image data. Read Content to pull the stored payload, or assign it to replace the bytes behind the picture in place. Because the contract extends IContentElement, the content also behaves as a slide content element where the model treats it that way. The concrete implementor in IronPPT is ImageContent, so most code works through IImage.ImageData and touches ImageContent only when handling the raw data directly.
string data = image.ImageData.Content;The add image example places a picture, and the manage image how-to covers editing one already on a slide.
Properties
Content
Declaration
string Content { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |