New to Telerik UI for WinFormsStart a free 30-day trial

Represents the element position in the container

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Position : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectPosition

Derived Classes: PositionBottomPositionCenterPositionLeftPositionRightPositionTopPositionTopLeftPositionTopRight...

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SaveViewState()StateManagedObject.TrackViewState()StateManagedObject.LoadViewState(object)StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase...

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; }

Automatic positioning

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

Specifies the X coordinate of the figure position

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

Specifies the Y coordinate of the figure position

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

Methods

Clone this object

C#
public virtual object Clone()
Returns:

object

Cloned object

Implements: ICloneable.Clone()

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