Class VerticalPosition
Configures vertical positioning for a floating shape, specifying either an offset or alignment relative to page, margin, paragraph, or line anchors.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Shapes
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class VerticalPosition
Constructors
VerticalPosition()
Initializes a new instance of the VerticalPosition class with paragraph-relative positioning at zero offset.
Declaration
public VerticalPosition()
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
|
VerticalRelativeFrom
relativeFrom
The relative from. |
|
System.Double
offset
The offset. |
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
|
VerticalRelativeFrom
relativeFrom
The relative from. |
|
RelativeVerticalAlignment
alignment
The alignment. |
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
|
RelativeVerticalAlignment
The alignment. |
Offset
Gets or sets the numeric distance in device-independent pixels used when ValueType is Offset, measured from the specified anchor.
Declaration
public double Offset { get; set; }
Property Value
|
System.Double
The offset. |
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
|
VerticalRelativeFrom
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
|
PositionValueType
The type of the positioning. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
|
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code for the current System.Object. |