Class Dimensions
Dimensions base class
Inherited Members
Namespace: Telerik.Charting.Styles
Assembly: Telerik.WinControls.RadChart.dll
Syntax
public class Dimensions : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, 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.Object
containerObject
Container element |
Dimensions(Single, Single)
Create new instance of Dimensions class.
Declaration
public Dimensions(float width, float height)
Parameters
System.Single
width
Width of element |
System.Single
height
Height of element |
Dimensions(ChartMargins)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins)
Parameters
ChartMargins
margins
Margins of element |
Dimensions(ChartMargins, ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins, ChartPaddings paddings)
Parameters
ChartMargins
margins
Margins of element |
ChartPaddings
paddings
Paddings of element |
Dimensions(ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartPaddings paddings)
Parameters
ChartPaddings
paddings
Paddings of element |
Dimensions(Unit, Unit)
Create new instance of Dimensions class.
Declaration
public Dimensions(Unit width, Unit height)
Parameters
Unit
width
Width of element |
Unit
height
Height of element |
Fields
dimensionsMargins
Specifies the margins properties
Declaration
protected ChartMargins dimensionsMargins
Field Value
ChartMargins
|
dimensionsPaddings
Specifies the paddings properties
Declaration
protected ChartPaddings dimensionsPaddings
Field Value
ChartPaddings
|
Properties
AutoSize
Gets and sets Auto sizing mode
Declaration
[SkinnableProperty]
public virtual bool AutoSize { get; set; }
Property Value
System.Boolean
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
ChartMargins
Margins for element |
Paddings
Specifies the paddings properties
Declaration
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Property Value
ChartPaddings
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.Object
New instance of Dimensions class with the same fields as this object. |
Implements
Equals(Object)
Comparing of two objects.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object to compare with. |
Returns
System.Boolean
Whether objects are equal. |
Overrides
GetHashCode()
Gets hash code.
Declaration
public override int GetHashCode()
Returns
System.Int32
Hash code. |
Overrides
IsZero()
Returns True if dimensions width and height are zero values
Declaration
public bool IsZero()
Returns
System.Boolean
True if dimensions width and height are zero values |
LoadViewState(Object)
Load data from ViewState.
Declaration
protected override void LoadViewState(object savedState)
Parameters
System.Object
savedState
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.Object
Saved data |
Overrides
SetDimensions(Single, Single)
Sets the new Width and Height values
Declaration
public void SetDimensions(float width, float height)
Parameters
System.Single
width
Width of element |
System.Single
height
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
Unit
width
Width of element |
Unit
height
Height of element |
ShouldSerializeHeight()
Gets if Height property should be serializable.
Declaration
protected virtual bool ShouldSerializeHeight()
Returns
System.Boolean
If Height property should be serializable. |
ShouldSerializeWidth()
Gets if Width property should be serializable.
Declaration
protected virtual bool ShouldSerializeWidth()
Returns
System.Boolean
If Width property should be serializable. |
TrackViewState()
Track ViewState.
Declaration
protected override void TrackViewState()