ClassDimensions
Dimensions base class
Definition
Namespace:Telerik.Charting.Styles
Assembly:Telerik.WinControls.RadChart.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Dimensions : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable
Inheritance: objectStateManagedObjectDimensions
Derived Classes:
Implements:
Inherited Members
Constructors
Dimensions()
Create new instance of Dimensions class.
Declaration
public Dimensions()
Dimensions(ChartMargins)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins)
Parameters
margins
Margins of element
Dimensions(ChartMargins, ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartMargins margins, ChartPaddings paddings)
Parameters
margins
Margins of element
paddings
Paddings of element
Dimensions(ChartPaddings)
Create new instance of Dimensions class.
Declaration
public Dimensions(ChartPaddings paddings)
Parameters
paddings
Paddings of element
Dimensions(Unit, Unit)
Create new instance of Dimensions class.
Dimensions(float, float)
Create new instance of Dimensions class.
Dimensions(object)
Create new instance of Dimensions class.
Declaration
public Dimensions(object containerObject)
Parameters
containerObject
Container element
Fields
dimensionsMargins
Specifies the margins properties
dimensionsPaddings
Specifies the paddings properties
Properties
AutoSize
Gets and sets Auto sizing mode
Declaration
[SkinnableProperty]
public virtual bool AutoSize { get; set; }
Property Value
True if auto size, false - if not.
Height
Specifies the height property
Declaration
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Height { get; set; }
Property Value
Height value of Unit type.
Margins
Specifies the margins properties
Declaration
[TypeConverter(typeof(MarginsConverter))]
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }
Property Value
Margins for element
Paddings
Specifies the paddings properties
Declaration
[TypeConverter(typeof(PaddingsConverter))]
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Property Value
Paddings for element
Methods
Clone()
Clone this object.
Declaration
public virtual object Clone()
Returns
New instance of Dimensions class with the same fields as this object.
Implements
Equals(object)
Comparing of two objects.
GetHashCode()
Gets hash code.
IsZero()
Returns True if dimensions width and height are zero values
Declaration
public bool IsZero()
Returns
True if dimensions width and height are zero values
LoadViewState(object)
Load data from ViewState.
Declaration
protected override void LoadViewState(object savedState)
Parameters
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
Saved data
Overrides
SetDimensions(Dimensions)
Copy dimensions from the object.
Declaration
public void SetDimensions(Dimensions source)
Parameters
source
Object tot copy from.
SetDimensions(Unit, Unit)
Sets the new Width and Height values
SetDimensions(float, float)
Sets the new Width and Height values
ShouldSerializeHeight()
Gets if Height property should be serializable.
Declaration
protected virtual bool ShouldSerializeHeight()
Returns
If Height property should be serializable.
ShouldSerializeWidth()
Gets if Width property should be serializable.
Declaration
protected virtual bool ShouldSerializeWidth()
Returns
If Width property should be serializable.
TrackViewState()
Track ViewState.
Declaration
protected override void TrackViewState()
Overrides