Enum DrawObjectEnum
DrawObjectEnum enumeration
Indicate Cell or Image of DrawObject.
public enum DrawObjectEnum
Values
Name | Value | Description |
---|---|---|
Image | 0 | Indicate DrawObject is an Image |
Cell | 1 | indicate DrawObject is an Cell |
Examples
// Called: if (drawObject.Type == DrawObjectEnum.Cell)
public override void Rendering_Type_DrawObjectEnum(DrawObject drawObject, float x, float y,
float width, float height)
{
// NOTE: All float coordinates *seem* to be in POINTS -
// but JavaDoc doesn't specify.
if (drawObject.Type == DrawObjectEnum.Cell)
{
Cell cell = drawObject.Cell;
//check cell A1
if (cell.Row == 0 && cell.Column == 0)
{
Assert.AreEqual(mPageIndex, drawObject.CurrentPage);
if (!mIsCached)
{
mX = x;
mY = y;
mWidth = width;
mHeight = height;
}
else
{
Assert.IsTrue(IsFloatEqual(mX, x));
Assert.IsTrue(IsFloatEqual(mY, y));
Assert.IsTrue(IsFloatEqual(mWidth, width));
Assert.IsTrue(IsFloatEqual(mHeight, height));
}
}
}
}
See Also
- namespace Aspose.Cells.Rendering
- assembly Aspose.Cells