ClassHorizontalPosition
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
HorizontalPosition()
Creates a new horizontal position with default settings (column-relative, zero offset).
Declaration
public HorizontalPosition()
HorizontalPosition(HorizontalRelativeFrom, RelativeHorizontalAlignment)
Creates a new horizontal position using alignment (left, center, right, etc.) relative to the specified reference point.
Declaration
public HorizontalPosition(HorizontalRelativeFrom relativeFrom, RelativeHorizontalAlignment alignment)
Parameters
relativeFrom
The relative from.
alignment
The alignment.
HorizontalPosition(HorizontalRelativeFrom, double)
Creates a new horizontal position using a numeric offset from the specified reference point.
Declaration
public HorizontalPosition(HorizontalRelativeFrom relativeFrom, double offset)
Parameters
relativeFrom
The relative from.
offset
The offset.
Properties
Alignment
Gets or sets the alignment value used when the position type is alignment.
Declaration
public RelativeHorizontalAlignment Alignment { get; set; }
Property Value
The alignment.
Offset
Gets or sets the numeric offset in device-independent pixels used when the position type is offset.
RelativeFrom
Gets or sets the reference point (page, margin, column, or character) from which the position is calculated.
Declaration
public HorizontalRelativeFrom RelativeFrom { get; set; }
Property Value
The horizontal relative from value.
ValueType
Gets or sets whether the position uses offset or alignment mode.
Declaration
public PositionValueType ValueType { get; set; }
Property Value
The type of the positioning.
Methods
GetHashCode()
Serves as a hash function for a particular type.