skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class Dimensions

Dimensions base class

Inheritance
System.Object
StateManagedObject
Dimensions
DimensionsChart
DimensionsLegend
DimensionsMarker
DimensionsPlotArea
DimensionsSeriesPointMark
DimensionsTitle
Inherited Members
StateManagedObject.IChartingStateManager.LoadViewState(Object)
StateManagedObject.IChartingStateManager.SaveViewState()
StateManagedObject.IChartingStateManager.TrackViewState()
StateManagedObject.CloneState()
StateManagedObject.SetDirty()
StateManagedObject.ToString()
StateManagedObject.Dispose()
StateManagedObject.ViewStateIgnoresCase
StateManagedObject.IChartingStateManager.IsTrackingViewState
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.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.

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides
StateManagedObject.Dispose(Boolean)

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
System.Object.Equals(System.Object)

GetHashCode()

Gets hash code.

Declaration
public override int GetHashCode()
Returns
System.Int32

Hash code.

Overrides
System.Object.GetHashCode()

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
StateManagedObject.LoadViewState(Object)

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
StateManagedObject.SaveViewState()

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()
Overrides
StateManagedObject.TrackViewState()
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.