HorizontalPosition
Defines horizontal positioning for a floating shape using either offset or alignment relative to a reference point.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Shapes
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class HorizontalPosition
Inheritance: objectHorizontalPosition
Constructors
Creates a new horizontal position with default settings (column-relative, zero offset).
public HorizontalPosition()
Creates a new horizontal position using a numeric offset from the specified reference point.
public HorizontalPosition(HorizontalRelativeFrom relativeFrom, double offset)
The relative from.
offsetdoubleThe offset.
Creates a new horizontal position using alignment (left, center, right, etc.) relative to the specified reference point.
public HorizontalPosition(HorizontalRelativeFrom relativeFrom, RelativeHorizontalAlignment alignment)
The relative from.
alignmentRelativeHorizontalAlignmentThe alignment.
Methods
Properties
Gets or sets the alignment value used when the position type is alignment.
public RelativeHorizontalAlignment Alignment { get; set; }
The alignment.
Gets or sets the numeric offset in device-independent pixels used when the position type is offset.
public double Offset { get; set; }
The offset.
Gets or sets the reference point (page, margin, column, or character) from which the position is calculated.
public HorizontalRelativeFrom RelativeFrom { get; set; }
The horizontal relative from value.
Gets or sets whether the position uses offset or alignment mode.
public PositionValueType ValueType { get; set; }
The type of the positioning.