New to Telerik ReportingStart a free 30-day trial

Dimensions base class

Definition

Namespace:Telerik.Reporting.Charting.Styles

Assembly:Telerik.Reporting.dll

Syntax:

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

Inheritance: objectStateManagedObjectDimensions

Derived Classes: DimensionsChartDimensionsLegendDimensionsMarkerDimensionsPlotAreaDimensionsSeriesPointMarkDimensionsTitle...

Implements: IChartingStateManagedItemIChartingStateManager

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

Constructors

Create new instance of Dimensions class.

C#
public Dimensions()

Create new instance of Dimensions class.

C#
public Dimensions(ChartMargins margins, ChartPaddings paddings)
Parameters:marginsChartMargins

Margins of element

paddingsChartPaddings

Paddings of element

Create new instance of Dimensions class.

C#
public Dimensions(ChartMargins margins)
Parameters:marginsChartMargins

Margins of element

Create new instance of Dimensions class.

C#
public Dimensions(ChartPaddings paddings)
Parameters:paddingsChartPaddings

Paddings of element

Create new instance of Dimensions class.

C#
public Dimensions(float width, float height)
Parameters:widthfloat

Width of element

heightfloat

Height of element

Create new instance of Dimensions class.

C#
public Dimensions(object containerObject)
Parameters:containerObjectobject

Container element

Create new instance of Dimensions class.

C#
public Dimensions(Unit width, Unit height)
Parameters:widthUnit

Width of element

heightUnit

Height of element

Fields

Specifies the margins properties

C#
protected ChartMargins dimensionsMargins

Specifies the paddings properties

C#
protected ChartPaddings dimensionsPaddings

Properties

Gets and sets Auto sizing mode

C#
[SkinnableProperty]
public virtual bool AutoSize { get; set; }
Property Value:

True if auto size, false - if not.

Specifies the height property

C#
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Height { get; set; }
Property Value:

Height value of Unit type.

Specifies the margins properties

C#
[TypeConverter(typeof(MarginsConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }
Property Value:

Margins for element

Specifies the paddings properties

C#
[TypeConverter(typeof(PaddingsConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Property Value:

Paddings for element

Specifies the width property

C#
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Width { get; set; }
Property Value:

Width value of Unit type

Methods

Clone()

object

Clone this object.

C#
public virtual object Clone()
Returns:

object

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

Releases unmanaged and - optionally - managed resources

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: StateManagedObject.Dispose(bool)

Comparing of two objects.

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

Object to compare with.

Returns:

bool

Whether objects are equal.

Overrides: object.Equals(object)

Gets hash code.

C#
public override int GetHashCode()
Returns:

int

Hash code.

Overrides: object.GetHashCode()

Returns True if dimensions width and height are zero values

C#
public bool IsZero()
Returns:

bool

True if dimensions width and height are zero values

Load data from ViewState.

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

ViewState with data

Overrides: StateManagedObject.LoadViewState(object)

Reset Height to default value.

C#
protected virtual void ResetHeight()

Gets if Width property should be serializable.

C#
protected virtual void ResetWidth()

Save data to ViewState.

C#
protected override object SaveViewState()
Returns:

object

Saved data

Overrides: StateManagedObject.SaveViewState()

Copy dimensions from the object.

C#
public void SetDimensions(Dimensions source)
Parameters:sourceDimensions

Object tot copy from.

Sets the new Width and Height values

C#
public void SetDimensions(float width, float height)
Parameters:widthfloat

Width of element

heightfloat

Height of element

Sets the new Width and Height values

C#
public void SetDimensions(Unit width, Unit height)
Parameters:widthUnit

Width of element

heightUnit

Height of element

Gets if Height property should be serializable.

C#
protected virtual bool ShouldSerializeHeight()
Returns:

bool

If Height property should be serializable.

Gets if Width property should be serializable.

C#
protected virtual bool ShouldSerializeWidth()
Returns:

bool

If Width property should be serializable.

Track ViewState.

C#
protected override void TrackViewState()

Overrides: StateManagedObject.TrackViewState()