VerticalPosition
Configures vertical positioning for a floating shape, specifying either an offset or alignment relative to page, margin, paragraph, or line anchors.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Shapes
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class VerticalPosition
Inheritance: objectVerticalPosition
Constructors
Initializes a new instance of the VerticalPosition class with paragraph-relative positioning at zero offset.
public VerticalPosition()
Initializes a new instance of the VerticalPosition class with an explicit numeric offset from the specified anchor.
public VerticalPosition(VerticalRelativeFrom relativeFrom, double offset)
The relative from.
offsetdoubleThe offset.
Initializes a new instance of the VerticalPosition class with alignment-based positioning relative to the specified anchor.
public VerticalPosition(VerticalRelativeFrom relativeFrom, RelativeVerticalAlignment alignment)
The relative from.
alignmentRelativeVerticalAlignmentThe alignment.
Methods
Properties
Gets or sets the alignment keyword used when ValueType is Alignment, such as top, center, or bottom relative to the anchor.
public RelativeVerticalAlignment Alignment { get; set; }
The alignment.
Gets or sets the numeric distance in device-independent pixels used when ValueType is Offset, measured from the specified anchor.
public double Offset { get; set; }
The offset.
Gets or sets the anchor point from which vertical position is calculated, such as page, margin, paragraph, or line.
public VerticalRelativeFrom RelativeFrom { get; set; }
The vertical relative from value.
Gets or sets whether positioning uses a numeric offset or an alignment keyword, determining which property governs placement.
public PositionValueType ValueType { get; set; }
The type of the positioning.