Class
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:

cs-api-definition
public class VerticalPosition

Inheritance: objectVerticalPosition

Constructors

VerticalPosition()

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

Declaration

cs-api-definition
public VerticalPosition()

VerticalPosition(VerticalRelativeFrom, RelativeVerticalAlignment)

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

Declaration

cs-api-definition
public VerticalPosition(VerticalRelativeFrom relativeFrom, RelativeVerticalAlignment alignment)

Parameters

relativeFrom

VerticalRelativeFrom

The relative from.

alignment

RelativeVerticalAlignment

The alignment.

VerticalPosition(VerticalRelativeFrom, double)

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

Declaration

cs-api-definition
public VerticalPosition(VerticalRelativeFrom relativeFrom, double offset)

Parameters

relativeFrom

VerticalRelativeFrom

The relative from.

offset

double

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

cs-api-definition
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

cs-api-definition
public double Offset { get; set; }

Property Value

double

The offset.

RelativeFrom

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

Declaration

cs-api-definition
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

cs-api-definition
public PositionValueType ValueType { get; set; }

Property Value

PositionValueType

The type of the positioning.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()