New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class VerticalPosition

Inheritance: objectVerticalPosition

Constructors

Initializes a new instance of the VerticalPosition class with paragraph-relative positioning at zero offset.

C#
public VerticalPosition()

Initializes a new instance of the VerticalPosition class with an explicit numeric offset from the specified anchor.

C#
public VerticalPosition(VerticalRelativeFrom relativeFrom, double offset)
Parameters:relativeFromVerticalRelativeFrom

The relative from.

offsetdouble

The offset.

Initializes a new instance of the VerticalPosition class with alignment-based positioning relative to the specified anchor.

C#
public VerticalPosition(VerticalRelativeFrom relativeFrom, RelativeVerticalAlignment alignment)
Parameters:relativeFromVerticalRelativeFrom

The relative from.

alignmentRelativeVerticalAlignment

The alignment.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Properties

Gets or sets the alignment keyword used when ValueType is Alignment, such as top, center, or bottom relative to the anchor.

C#
public RelativeVerticalAlignment Alignment { get; set; }
Property Value:

The alignment.

Gets or sets the numeric distance in device-independent pixels used when ValueType is Offset, measured from the specified anchor.

C#
public double Offset { get; set; }
Property Value:

The offset.

Gets or sets the anchor point from which vertical position is calculated, such as page, margin, paragraph, or line.

C#
public VerticalRelativeFrom RelativeFrom { get; set; }
Property Value:

The vertical relative from value.

Gets or sets whether positioning uses a numeric offset or an alignment keyword, determining which property governs placement.

C#
public PositionValueType ValueType { get; set; }
Property Value:

The type of the positioning.