Class
Dimensions

Dimensions base class

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Dimensions : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectDimensions

Derived Classes: DimensionsChartDimensionsLegendDimensionsMarkerDimensionsPlotAreaDimensionsSeriesPointMarkDimensionsTitle

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase

Constructors

Dimensions()

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions()

Dimensions(ChartMargins)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(ChartMargins margins)

Parameters

margins

ChartMargins

Margins of element

Dimensions(ChartMargins, ChartPaddings)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(ChartMargins margins, ChartPaddings paddings)

Parameters

margins

ChartMargins

Margins of element

paddings

ChartPaddings

Paddings of element

Dimensions(ChartPaddings)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(ChartPaddings paddings)

Parameters

paddings

ChartPaddings

Paddings of element

Dimensions(Unit, Unit)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(Unit width, Unit height)

Parameters

width

Unit

Width of element

height

Unit

Height of element

Dimensions(float, float)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(float width, float height)

Parameters

width

float

Width of element

height

float

Height of element

Dimensions(object)

Create new instance of Dimensions class.

Declaration

cs-api-definition
public Dimensions(object containerObject)

Parameters

containerObject

object

Container element

Fields

dimensionsMargins

Specifies the margins properties

Declaration

cs-api-definition
protected ChartMargins dimensionsMargins

Field Value

ChartMargins

dimensionsPaddings

Specifies the paddings properties

Declaration

cs-api-definition
protected ChartPaddings dimensionsPaddings

Field Value

ChartPaddings

Properties

AutoSize

Gets and sets Auto sizing mode

Declaration

cs-api-definition
[SkinnableProperty]
public virtual bool AutoSize { get; set; }

Property Value

bool

True if auto size, false - if not.

Height

Specifies the height property

Declaration

cs-api-definition
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Height { get; set; }

Property Value

Unit

Height value of Unit type.

Margins

Specifies the margins properties

Declaration

cs-api-definition
[TypeConverter(typeof(MarginsConverter))]
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }

Property Value

ChartMargins

Margins for element

Paddings

Specifies the paddings properties

Declaration

cs-api-definition
[TypeConverter(typeof(PaddingsConverter))]
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }

Property Value

ChartPaddings

Paddings for element

Width

Specifies the width property

Declaration

cs-api-definition
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Width { get; set; }

Property Value

Unit

Width value of Unit type

Methods

Clone()

Clone this object.

Declaration

cs-api-definition
public virtual object Clone()

Returns

object

New instance of Dimensions class with the same fields as this object.

Implements ICloneable.Clone()

Equals(object)

Comparing of two objects.

Declaration

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

Parameters

obj

object

Object to compare with.

Returns

bool

Whether objects are equal.

Overrides object.Equals(object)

GetHashCode()

Gets hash code.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Hash code.

Overrides object.GetHashCode()

IsZero()

Returns True if dimensions width and height are zero values

Declaration

cs-api-definition
public bool IsZero()

Returns

bool

True if dimensions width and height are zero values

LoadViewState(object)

Load data from ViewState.

Declaration

cs-api-definition
protected override void LoadViewState(object savedState)

Parameters

savedState

object

ViewState with data

Overrides StateManagedObject.LoadViewState(object)

ResetHeight()

Reset Height to default value.

Declaration

cs-api-definition
protected virtual void ResetHeight()

ResetWidth()

Gets if Width property should be serializable.

Declaration

cs-api-definition
protected virtual void ResetWidth()

SaveViewState()

Save data to ViewState.

Declaration

cs-api-definition
protected override object SaveViewState()

Returns

object

Saved data

Overrides StateManagedObject.SaveViewState()

SetDimensions(Dimensions)

Copy dimensions from the object.

Declaration

cs-api-definition
public void SetDimensions(Dimensions source)

Parameters

source

Dimensions

Object tot copy from.

SetDimensions(Unit, Unit)

Sets the new Width and Height values

Declaration

cs-api-definition
public void SetDimensions(Unit width, Unit height)

Parameters

width

Unit

Width of element

height

Unit

Height of element

SetDimensions(float, float)

Sets the new Width and Height values

Declaration

cs-api-definition
public void SetDimensions(float width, float height)

Parameters

width

float

Width of element

height

float

Height of element

ShouldSerializeHeight()

Gets if Height property should be serializable.

Declaration

cs-api-definition
protected virtual bool ShouldSerializeHeight()

Returns

bool

If Height property should be serializable.

ShouldSerializeWidth()

Gets if Width property should be serializable.

Declaration

cs-api-definition
protected virtual bool ShouldSerializeWidth()

Returns

bool

If Width property should be serializable.

TrackViewState()

Track ViewState.

Declaration

cs-api-definition
protected override void TrackViewState()

Overrides StateManagedObject.TrackViewState()