ClassVerticalPosition
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
VerticalPosition()
Initializes a new instance of the VerticalPosition class with paragraph-relative positioning at zero offset.
Declaration
public VerticalPosition()
VerticalPosition(VerticalRelativeFrom, RelativeVerticalAlignment)
Initializes a new instance of the VerticalPosition class with alignment-based positioning relative to the specified anchor.
Declaration
public VerticalPosition(VerticalRelativeFrom relativeFrom, RelativeVerticalAlignment alignment)
Parameters
relativeFrom
The relative from.
alignment
The alignment.
VerticalPosition(VerticalRelativeFrom, double)
Initializes a new instance of the VerticalPosition class with an explicit numeric offset from the specified anchor.
Declaration
public VerticalPosition(VerticalRelativeFrom relativeFrom, double offset)
Parameters
relativeFrom
The relative from.
offset
The offset.
Properties
Alignment
Gets or sets the alignment keyword used when ValueType is Alignment, such as top, center, or bottom relative to the anchor.
Declaration
public RelativeVerticalAlignment Alignment { get; set; }
Property Value
The alignment.
Offset
Gets or sets the numeric distance in device-independent pixels used when ValueType is Offset, measured from the specified anchor.
RelativeFrom
Gets or sets the anchor point from which vertical position is calculated, such as page, margin, paragraph, or line.
Declaration
public VerticalRelativeFrom RelativeFrom { get; set; }
Property Value
The vertical relative from value.
ValueType
Gets or sets whether positioning uses a numeric offset or an alignment keyword, determining which property governs placement.
Declaration
public PositionValueType ValueType { get; set; }
Property Value
The type of the positioning.
Methods
GetHashCode()
Serves as a hash function for a particular type.