Class ImageContent
Inheritance
System.Object
ImageContent
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
IronSoftware.IDocumentImageObject
IronSoftware.IBoundedDocumentObject
IronSoftware.IBounded
IronSoftware.ITransformable
System.ICloneable
IronSoftware.IJsonSerializable
Assembly: IronWord.dll
Syntax
public class ImageContent : ContentElement, IDocumentElement, IWordImageObject, IWordDocumentObject, IDocumentObject, IDocumentImageObject, IBoundedDocumentObject, IBounded, ITransformable, ICloneable, IJsonSerializable
Constructors
ImageContent()
Declaration
ImageContent(AnyBitmap)
Declaration
public ImageContent(AnyBitmap anyBitmap)
Parameters
Type |
Name |
Description |
IronSoftware.Drawing.AnyBitmap |
anyBitmap |
|
ImageContent(Stream)
Declaration
public ImageContent(Stream imageStream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
imageStream |
|
ImageContent(String)
Declaration
public ImageContent(string imagePath)
Parameters
Type |
Name |
Description |
System.String |
imagePath |
|
Properties
BoundingBox
Declaration
public RectangleF BoundingBox { get; set; }
Property Value
Type |
Description |
System.Drawing.RectangleF |
|
DistanceFromBottom
Declaration
public double DistanceFromBottom { get; set; }
Property Value
Type |
Description |
System.Double |
|
DistanceFromLeft
Declaration
public double DistanceFromLeft { get; set; }
Property Value
Type |
Description |
System.Double |
|
DistanceFromRight
Declaration
public double DistanceFromRight { get; set; }
Property Value
Type |
Description |
System.Double |
|
DistanceFromTop
Declaration
public double DistanceFromTop { get; set; }
Property Value
Type |
Description |
System.Double |
|
DocumentId
Declaration
public IDocumentId DocumentId { get; set; }
Property Value
Type |
Description |
IronSoftware.IDocumentId |
|
Height
Declaration
public double Height { get; set; }
Property Value
Type |
Description |
System.Double |
|
Id
Declaration
public uint Id { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Image
Declaration
public IAnyImage Image { get; set; }
Property Value
Type |
Description |
IronSoftware.IAnyImage |
|
ImageData
Declaration
public string ImageData { get; }
Property Value
Type |
Description |
System.String |
|
Index
Declaration
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Matrix
Declaration
public MatrixStruct Matrix { get; }
Property Value
Type |
Description |
IronSoftware.MatrixStruct |
|
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
ObjNum
Declaration
public uint ObjNum { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
PageIndex
Declaration
public uint PageIndex { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Position
Declaration
public ElementPosition Position { get; set; }
Property Value
Scale
Declaration
public PointF Scale { get; set; }
Property Value
Type |
Description |
System.Drawing.PointF |
|
Translate
Declaration
public PointF Translate { get; set; }
Property Value
Type |
Description |
System.Drawing.PointF |
|
Type
Declaration
public ImageType Type { get; set; }
Property Value
Width
Declaration
public double Width { get; set; }
Property Value
Type |
Description |
System.Double |
|
WrapText
Declaration
public WrapText WrapText { get; set; }
Property Value
Methods
GetDistanceFromBottom(Units)
Declaration
public double GetDistanceFromBottom(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
GetDistanceFromLeft(Units)
Declaration
public double GetDistanceFromLeft(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
GetDistanceFromRight(Units)
Declaration
public double GetDistanceFromRight(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
GetDistanceFromTop(Units)
Declaration
public double GetDistanceFromTop(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
GetHeight(Units)
Declaration
public double GetHeight(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
GetWidth(Units)
Declaration
public double GetWidth(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
LoadFromFile(String)
Declaration
public void LoadFromFile(string imagePath)
Parameters
Type |
Name |
Description |
System.String |
imagePath |
|
LoadFromStream(Stream)
Declaration
public void LoadFromStream(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
SetDistanceFromBottom(Double, Units)
Declaration
public void SetDistanceFromBottom(double distanceFromBottom, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
distanceFromBottom |
|
Units |
measurementUnit |
|
SetDistanceFromLeft(Double, Units)
Declaration
public void SetDistanceFromLeft(double distanceFromLeft, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
distanceFromLeft |
|
Units |
measurementUnit |
|
SetDistanceFromRight(Double, Units)
Declaration
public void SetDistanceFromRight(double distanceFromRight, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
distanceFromRight |
|
Units |
measurementUnit |
|
SetDistanceFromTop(Double, Units)
Declaration
public void SetDistanceFromTop(double distanceFromTop, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
distanceFromTop |
|
Units |
measurementUnit |
|
SetHeight(Double, Units)
Declaration
public void SetHeight(double height, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
height |
|
Units |
measurementUnit |
|
SetWidth(Double, Units)
Declaration
public void SetWidth(double width, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Units |
measurementUnit |
|
ToJson()
Declaration
Returns
Type |
Description |
System.String |
|
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
IronSoftware.IDocumentImageObject
IronSoftware.IBoundedDocumentObject
IronSoftware.IBounded
IronSoftware.ITransformable
System.ICloneable
IronSoftware.IJsonSerializable