New to Telerik ReportingStart a free 30-day trial

Represents the element position in the container

Definition

Constructors

Creates an instance of Position class.

C#
public Position()

Creates an instance of Position class.

C#
public Position(AlignedPositions position, float x, float y)
Parameters:positionAlignedPositions

Aligned position of element

xfloat

X coordinate

yfloat

Y coordinate

Creates an instance of Position class.

C#
public Position(AlignedPositions position)
Parameters:positionAlignedPositions

Aligned position of element

Creates an instance of Position class.

C#
public Position(float x, float y)
Parameters:xfloat

X coordinate

yfloat

Y coordinate

Creates an instance of Position class.

C#
public Position(object container)
Parameters:containerobject

Container element

Properties

Specifies aligned position in comprehensive figure

C#
[SkinnableProperty]
public virtual AlignedPositions AlignedPosition { get; set; }

Auto

bool

Automatic positioning

C#
public virtual bool Auto { get; set; }

X

float

Specifies the X coordinate of the figure position

C#
public virtual float X { get; set; }

Y

float

Specifies the Y coordinate of the figure position

C#
public virtual float Y { get; set; }

Methods

Clone()

object

Clone this object

C#
public virtual object Clone()
Returns:

object

Cloned object

Determines whether the specified System.Object is equal to the current System.Object.

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

Object to compare

Returns:

bool

Result of comparing

Overrides: object.Equals(object)

Gets hash code

C#
public override int GetHashCode()
Returns:

int

Hash code

Overrides: object.GetHashCode()

Reset X coordinate to default

C#
protected virtual void ResetX()

Reset Y coordinate to default

C#
protected virtual void ResetY()

Manages design-time serialization of X

C#
protected virtual bool ShouldSerializeX()
Returns:

bool

True if value should be serialized

Manages design-time serialization of Y

C#
protected virtual bool ShouldSerializeY()
Returns:

bool

True if value should be serialized