Dimensions
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
Create new instance of Dimensions class.
public Dimensions()
Create new instance of Dimensions class.
public Dimensions(ChartMargins margins, ChartPaddings paddings)
Margins of element
paddingsChartPaddingsPaddings of element
Create new instance of Dimensions class.
Create new instance of Dimensions class.
Create new instance of Dimensions class.
public Dimensions(float width, float height)
Width of element
heightfloatHeight of element
Create new instance of Dimensions class.
public Dimensions(object containerObject)
Container element
Fields
Specifies the margins properties
protected ChartMargins dimensionsMargins
Specifies the paddings properties
protected ChartPaddings dimensionsPaddings
Properties
AutoSize
bool
Gets and sets Auto sizing mode
[SkinnableProperty]
public virtual bool AutoSize { get; set; }
True if auto size, false - if not.
Specifies the height property
[TypeConverter(typeof(UnitConverter))]
public virtual Unit Height { get; set; }
Height value of Unit type.
Specifies the margins properties
[TypeConverter(typeof(MarginsConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartMargins Margins { get; set; }
Margins for element
Specifies the paddings properties
[TypeConverter(typeof(PaddingsConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual ChartPaddings Paddings { get; set; }
Paddings for element
Methods
Clone()
object
Clone this object.
public virtual object Clone()
object
New instance of Dimensions class with the same fields as this object.
Releases unmanaged and - optionally - managed resources
protected override void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Equals(object)
bool
Comparing of two objects.
public override bool Equals(object obj)
Object to compare with.
Returns:bool
Whether objects are equal.
Overrides:
Gets hash code.
public override int GetHashCode()
int
Hash code.
Overrides:
IsZero()
bool
Returns True if dimensions width and height are zero values
public bool IsZero()
bool
True if dimensions width and height are zero values
Load data from ViewState.
protected override void LoadViewState(object savedState)
ViewState with data
Overrides:
Reset Height to default value.
protected virtual void ResetHeight()
Gets if Width property should be serializable.
protected virtual void ResetWidth()
SaveViewState()
object
Save data to ViewState.
protected override object SaveViewState()
object
Saved data
Overrides:
Copy dimensions from the object.
Sets the new Width and Height values
public void SetDimensions(float width, float height)
Width of element
heightfloatHeight of element
Gets if Height property should be serializable.
protected virtual bool ShouldSerializeHeight()
bool
If Height property should be serializable.
Gets if Width property should be serializable.
protected virtual bool ShouldSerializeWidth()
bool
If Width property should be serializable.
Track ViewState.
protected override void TrackViewState()
Overrides: