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 |