Class RtfShapePosition
- Namespace
- iTextSharp.text.rtf.graphic
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfShapePosition stores position and ordering information for one RtfShape. @version $Revision: 1.6 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfShapePosition : RtfAddableElement, IElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfShapePosition
- Implements
- Inherited Members
Constructors
RtfShapePosition(int, int, int, int)
Constructs a new RtfShapePosition with the four bounding coordinates.
public RtfShapePosition(int top, int left, int right, int bottom)
Parameters
top
intThe top coordinate.
left
intThe left coordinate.
right
intThe right coordinate.
bottom
intThe bottom coordinate.
Fields
POSITION_X_RELATIVE_COLUMN
Constant for horizontal positioning relative to the column.
public const int POSITION_X_RELATIVE_COLUMN = 2
Field Value
POSITION_X_RELATIVE_MARGIN
Constant for horizontal positioning relative to the margin.
public const int POSITION_X_RELATIVE_MARGIN = 1
Field Value
POSITION_X_RELATIVE_PAGE
Constant for horizontal positioning relative to the page.
public const int POSITION_X_RELATIVE_PAGE = 0
Field Value
POSITION_Y_RELATIVE_MARGIN
Constant for vertical positioning relative to the margin.
public const int POSITION_Y_RELATIVE_MARGIN = 1
Field Value
POSITION_Y_RELATIVE_PAGE
Constant for vertical positioning relative to the page.
public const int POSITION_Y_RELATIVE_PAGE = 0
Field Value
POSITION_Y_RELATIVE_PARAGRAPH
Constant for vertical positioning relative to the paragraph.
public const int POSITION_Y_RELATIVE_PARAGRAPH = 2
Field Value
Methods
IsShapeBelowText()
Gets whether the shape is below the text.
public bool IsShapeBelowText()
Returns
- bool
True if the shape is below, false if the text is below.
SetIgnoreXRelative(bool)
Set whether to ignore the horizontal relative position.
protected void SetIgnoreXRelative(bool ignoreXRelative)
Parameters
ignoreXRelative
boolTrue to ignore the horizontal relative position, false otherwise.
SetIgnoreYRelative(bool)
Set whether to ignore the vertical relative position.
protected void SetIgnoreYRelative(bool ignoreYRelative)
Parameters
ignoreYRelative
boolTrue to ignore the vertical relative position, false otherwise.
SetShapeBelowText(bool)
Sets whether the shape is below the text.
public void SetShapeBelowText(bool shapeBelowText)
Parameters
shapeBelowText
boolTrue if the shape is below, false if the text is below.
SetXRelativePos(int)
Sets the relative horizontal position. Use one of the constants provided in this class.
public void SetXRelativePos(int relativePos)
Parameters
relativePos
intThe relative horizontal position to use.
SetYRelativePos(int)
Sets the relative vertical position. Use one of the constants provides in this class.
public void SetYRelativePos(int relativePos)
Parameters
relativePos
intThe relative vertical position to use.
SetZOrder(int)
Sets the z order to use.
public void SetZOrder(int order)
Parameters
order
intThe z order to use.
WriteContent(Stream)
Write this RtfShapePosition.
public override void WriteContent(Stream outp)
Parameters
outp
Stream