Class ImageContent
Inherited Members
Namespace: IronPPT.Models
Assembly: IronPPT.dll
Syntax
public class ImageContent : ContentElement, ICloneableElement, IImageContent, IContentElement
ImageContent is the payload behind a slide picture: the encoded image data an Image holds and renders. Work with it when you need the raw content of a picture rather than the graphic element that positions it on the slide.
Content, a string, carries the image data the type wraps, so a single property exposes the encoded picture. An Image surfaces this through its get-only ImageData property, typed as the IImageContent interface that ImageContent implements, which is how the graphic and its payload stay connected. For brevity the type also defines an implicit conversion from string, so the content can be assigned from a string value and the runtime builds the ImageContent for you. Set or read Content when manipulating the picture data directly, and let Image handle placement, sizing, and cloning on the slide. Because ImageContent is the data layer beneath a picture, most code reaches it through an Image rather than constructing it alone. To add and manage the picture it backs, start from the image management workflow.
using IronPPT.Models;
ImageContent content = imageData;The manage image how-to covers adding and editing images, and the add image example places a picture on a slide.
Constructors
ImageContent()
Declaration
public ImageContent()
Properties
Content
Declaration
public string Content { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Operators
Implicit(String to ImageContent)
Declaration
public static implicit operator ImageContent(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type | Description |
|---|---|
| ImageContent |