Class Dimensions
Dimensions base class
Inherited Members
Namespace: Telerik.Reporting.Charting.Styles
Assembly: Telerik.Reporting.dll
Syntax
public class Dimensions : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, IDisposable, ISizesAndPaddings, ICloneable
Constructors
Dimensions()
Create new instance of Dimensions class.
Declaration
public Dimensions()
Dimensions(Object)
Create new instance of Dimensions class.
Declaration
public Dimensions(object containerObject)
Parameters
System. Container element |
Dimensions(Single, Single)
Create new instance of Dimensions class.
Declaration
public Dimensions(float width, float height)
Parameters
System. Width of element |
System. Height of element |
Dimensions(ChartMargins)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins)
Parameters
Chart Margins of element |
Dimensions(ChartMargins, ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins, ChartPaddings paddings)
Parameters
Chart Margins of element |
Chart Paddings of element |
Dimensions(ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartPaddings paddings)
Parameters
Chart Paddings of element |
Dimensions(Unit, Unit)
Create new instance of Dimensions class.
Declaration
public Dimensions(Unit width, Unit height)
Parameters
Fields
dimensionsMargins
Specifies the margins properties
Declaration
protected ChartMargins dimensionsMargins
Field Value
dimensionsPaddings
Specifies the paddings properties
Declaration
protected ChartPaddings dimensionsPaddings
Field Value
Properties
AutoSize
Gets and sets Auto sizing mode
Declaration
[SkinnableProperty]
public virtual bool AutoSize { get; set; }
Property Value
System. True if auto size, false - if not. |
Height
Specifies the height property
Declaration
public virtual Unit Height { get; set; }
Property Value
Unit
Height value of Unit type. |
Margins
Specifies the margins properties
Declaration
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }
Property Value
Chart Margins for element |
Paddings
Specifies the paddings properties
Declaration
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Property Value
Chart Paddings for element |
Width
Specifies the width property
Declaration
public virtual Unit Width { get; set; }
Property Value
Unit
Width value of Unit type |
Methods
Clone()
Clone this object.
Declaration
public virtual object Clone()
Returns
System. New instance of Dimensions class with the same fields as this object. |
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
Equals(Object)
Comparing of two objects.
Declaration
public override bool Equals(object obj)
Parameters
System. Object to compare with. |
Returns
System. Whether objects are equal. |
Overrides
GetHashCode()
Gets hash code.
Declaration
public override int GetHashCode()
Returns
System. Hash code. |
Overrides
IsZero()
Returns True if dimensions width and height are zero values
Declaration
public bool IsZero()
Returns
System. True if dimensions width and height are zero values |
LoadViewState(Object)
Load data from ViewState.
Declaration
protected override void LoadViewState(object savedState)
Parameters
System. ViewState with data |
Overrides
ResetHeight()
Reset Height to default value.
Declaration
protected virtual void ResetHeight()
ResetWidth()
Gets if Width property should be serializable.
Declaration
protected virtual void ResetWidth()
SaveViewState()
Save data to ViewState.
Declaration
protected override object SaveViewState()
Returns
System. Saved data |
Overrides
SetDimensions(Single, Single)
Sets the new Width and Height values
Declaration
public void SetDimensions(float width, float height)
Parameters
System. Width of element |
System. Height of element |
SetDimensions(Dimensions)
Copy dimensions from the object.
Declaration
public void SetDimensions(Dimensions source)
Parameters
Dimensions
source
Object tot copy from. |
SetDimensions(Unit, Unit)
Sets the new Width and Height values
Declaration
public void SetDimensions(Unit width, Unit height)
Parameters
ShouldSerializeHeight()
Gets if Height property should be serializable.
Declaration
protected virtual bool ShouldSerializeHeight()
Returns
System. If Height property should be serializable. |
ShouldSerializeWidth()
Gets if Width property should be serializable.
Declaration
protected virtual bool ShouldSerializeWidth()
Returns
System. If Width property should be serializable. |
TrackViewState()
Track ViewState.
Declaration
protected override void TrackViewState()