Search Results for

    Show / Hide Table of Contents

    Interface IDrawContainer

    Represents a container that can hold drawings such as images and shapes.

    Namespace: IronWord.Models.Abstract.Interfaces
    Assembly: IronWord.dll
    Syntax
    public interface IDrawContainer

    Methods

    AddImage(AnyBitmap)

    Adds an Image to the draw container from an AnyBitmap instance.

    Declaration
    ImageContent AddImage(AnyBitmap anyBitmap)
    Parameters
    Type Name Description
    IronSoftware.Drawing.AnyBitmap anyBitmap

    The AnyBitmap instance containing the Image data.

    Returns
    Type Description
    ImageContent

    The added Image.

    AddImage(ImageContent)

    Adds an Image to the draw container.

    Declaration
    ImageContent AddImage(ImageContent imageContent)
    Parameters
    Type Name Description
    ImageContent imageContent

    The Image to be added.

    Returns
    Type Description
    ImageContent

    The added Image.

    AddImage(Stream)

    Adds an Image to the draw container from a stream.

    Declaration
    ImageContent AddImage(Stream imageStream)
    Parameters
    Type Name Description
    System.IO.Stream imageStream

    The stream containing the Image data.

    Returns
    Type Description
    ImageContent

    The added Image.

    AddImage(String)

    Adds an Image to the draw container from a file path.

    Declaration
    ImageContent AddImage(string imagePath)
    Parameters
    Type Name Description
    System.String imagePath

    The file path of the Image.

    Returns
    Type Description
    ImageContent

    The added Image.

    AddShape(ShapeContent)

    Adds a Shape to the draw container.

    Declaration
    ShapeContent AddShape(ShapeContent shapeContent)
    Parameters
    Type Name Description
    ShapeContent shapeContent

    The Shape to be added.

    Returns
    Type Description
    ShapeContent

    The added Shape.

    ExtractImages()

    Extract all images from this container

    Declaration
    List<AnyBitmap> ExtractImages()
    Returns
    Type Description
    System.Collections.Generic.List<IronSoftware.Drawing.AnyBitmap>

    List of images

    ExtractShapes()

    Extract all shapes from this container

    Declaration
    List<IReadOnlyCollection<IPathSegment>> ExtractShapes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Collections.Generic.IReadOnlyCollection<IronSoftware.IPathSegment>>

    List of path segment collections

    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.