Search Results for

    Show / Hide Table of Contents

    Interface IWordImageObject

    Image object from a Word document

    Namespace: IronWord.Models
    Assembly: IronWord.dll
    Syntax
    public interface IWordImageObject

    IWordImageObject is the contract that represents an image already placed in a Word document when you read or edit one in C#. Code that walks a document's content can treat every picture through this single contract instead of binding to a concrete class, which keeps extraction and editing routines decoupled from how an image was originally added. The contract composes the shared image, document-object, cloning, positioning, and serialization abstractions, so an image carried through it exposes sizing, placement, and identity in a uniform way.

    The concrete implementor in IronWord is ImageContent, the type you receive when you enumerate the images in a document, and the type you construct from a file, stream, or AnyBitmap to add a new picture. Most code names ImageContent directly; the interface matters when a method accepts or returns an image by contract. Because IWordImageObject extends ICloneable, an implementation can be copied, and because it extends the serialization abstraction, it round-trips with the document model.

    The add image how-to places a picture, and the extract images how-to reads them back.

    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet