Overloads
Sets the absolute position of the graphic using the specified coordinates and units.
Sets the absolute position of the graphic using pre-configured DocumentUnit values.
Sets the position of the graphic using alignment-based positioning.
Sets the position of the graphic using mixed positioning (horizontal alignment with vertical absolute offset).
Sets the position of the graphic using mixed positioning (horizontal absolute offset with vertical alignment).
SetPosition(double x, double y, Units units)
SetPosition(double x, double y, Units units)Sets the absolute position of the graphic using the specified coordinates and units.
Parameters
- x
- Horizontal position value.
- y
- Vertical position value.
- units
- Measurement unit for the position values (default: points).
Remarks
This method configures the graphic for absolute positioning, which places the element at a fixed location relative to the page or margin reference. The method automatically initializes and properties if they are, and ensures that absolute positioning mode is enabled (clearing any previous alignment-based positioning). Transform Position null
SetPosition(DocumentUnit x, DocumentUnit y)
SetPosition(DocumentUnit x, DocumentUnit y)Sets the absolute position of the graphic using pre-configured DocumentUnit values.
Parameters
- x
- Horizontal position as . DocumentUnit
- y
- Vertical position as . DocumentUnit
Remarks
This overload is useful when you have already created instances with specific units and want to reuse them for positioning. DocumentUnit
SetPosition(HorizontalAlignmentValues horizontalAlignment, VerticalAlignmentValues verticalAlignment)
SetPosition(HorizontalAlignmentValues horizontalAlignment, VerticalAlignmentValues verticalAlignment)Sets the position of the graphic using alignment-based positioning.
Parameters
- horizontalAlignment
- Horizontal alignment within the reference frame.
- verticalAlignment
- Vertical alignment within the reference frame.
Remarks
Alignment-based positioning places the element relative to its and reference frames. HorizontalRelativePosition VerticalRelativePosition When alignment is used, any absolute offset values are cleared (set to 0) to maintain consistency.
SetPosition(HorizontalAlignmentValues horizontalAlignment, double y, Units units)
SetPosition(HorizontalAlignmentValues horizontalAlignment, double y, Units units)Sets the position of the graphic using mixed positioning (horizontal alignment with vertical absolute offset).
Parameters
- horizontalAlignment
- Horizontal alignment within the reference frame.
- y
- Vertical offset value.
- units
- Measurement unit for the vertical offset (default: points).
Remarks
This method is useful when you want the graphic to be aligned horizontally (e.g., centered) but positioned at a specific vertical location on the page.
SetPosition(double x, VerticalAlignmentValues verticalAlignment, Units units)
SetPosition(double x, VerticalAlignmentValues verticalAlignment, Units units)Sets the position of the graphic using mixed positioning (horizontal absolute offset with vertical alignment).
Parameters
- x
- Horizontal offset value.
- verticalAlignment
- Vertical alignment within the reference frame.
- units
- Measurement unit for the horizontal offset (default: points).
Remarks
This method is useful when you want the graphic to be aligned vertically (e.g., centered) but positioned at a specific horizontal location on the page.