ClassDimensions
Dimensions base class
Definition
Namespace:Telerik.Reporting.Charting.Styles
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Dimensions : StateManagedObject, IChartingStateManagedItem, IChartingStateManager
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.
Declaration
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
public Dimensions(object containerObject)
Parameters
containerObject
object
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
bool
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))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }
Property Value
Margins for element
Paddings
Specifies the paddings properties
Declaration
[TypeConverter(typeof(PaddingsConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Property Value
Paddings for element
Methods
Clone()
Clone this object.
Declaration
public virtual object Clone()
Returns
object
New instance of Dimensions class with the same fields as this object.
Dispose(bool)
Releases unmanaged and - optionally - managed resources
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
bool
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
Equals(object)
Comparing of two objects.
Declaration
public override bool Equals(object obj)
Parameters
obj
object
Object to compare with.
Returns
bool
Whether objects are equal.
Overrides
GetHashCode()
Gets hash code.
Declaration
public override int GetHashCode()
Returns
int
Hash code.
Overrides
IsZero()
Returns True if dimensions width and height are zero values
Declaration
public bool IsZero()
Returns
bool
True if dimensions width and height are zero values
LoadViewState(object)
Load data from ViewState.
Declaration
protected override void LoadViewState(object savedState)
Parameters
savedState
object
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
object
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
Declaration
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
protected virtual bool ShouldSerializeHeight()
Returns
bool
If Height property should be serializable.
ShouldSerializeWidth()
Gets if Width property should be serializable.
Declaration
protected virtual bool ShouldSerializeWidth()
Returns
bool
If Width property should be serializable.
TrackViewState()
Track ViewState.
Declaration
protected override void TrackViewState()
Overrides