New to Telerik UI for WinFormsStart a free 30-day trial

Base class for a chart Margins and Paddings

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

C#
[TypeConverter(typeof(MarginsConverter))]
public class LayoutDecoratorBase : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectLayoutDecoratorBase

Derived Classes: ChartMarginsChartPaddings

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SaveViewState()StateManagedObject.TrackViewState()StateManagedObject.LoadViewState(object)StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase...

Constructors

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase()

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase(int top, int right, int bottom, int left)
Parameters:topint

Top side

rightint

Right side

bottomint

Bottom side

leftint

Left side

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase(object containerObject, Unit top, Unit right, Unit bottom, Unit left)
Parameters:containerObjectobject

Container element

topUnit

Top side

rightUnit

Right side

bottomUnit

Bottom side

leftUnit

Left side

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase(object containerObject)
Parameters:containerObjectobject

Container element

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase(Unit top, Unit right, Unit bottom, Unit left)
Parameters:topUnit

Top side

rightUnit

Right side

bottomUnit

Bottom side

leftUnit

Left side

Creates new instance of LayoutDecoratorBase class.

C#
public LayoutDecoratorBase(Unit value)
Parameters:valueUnit

Properties

Sets the bottom side in pixels or percents of the chart's height.

C#
[Browsable(true)]
[TypeConverter(typeof(UnitConverter))]
[SkinnableProperty]
public virtual Unit Bottom { get; set; }

Sets the left side in pixels or percents of the chart's width.

C#
[Browsable(true)]
[TypeConverter(typeof(UnitConverter))]
[SkinnableProperty]
public virtual Unit Left { get; set; }

Sets the right side in pixels or percents of the chart's width.

C#
[Browsable(true)]
[TypeConverter(typeof(UnitConverter))]
[SkinnableProperty]
public virtual Unit Right { get; set; }

Sets the top side in pixels or percents of the chart's height.

C#
[Browsable(true)]
[TypeConverter(typeof(UnitConverter))]
[SkinnableProperty]
public virtual Unit Top { get; set; }

Methods

Clone this object

C#
public object Clone()
Returns:

object

New instance of LayoutDecoratorBase class with the same fields as this one

Implements: ICloneable.Clone()

Copy fields from object

C#
public void CopyFrom(LayoutDecoratorBase layoutDecorator)
Parameters:layoutDecoratorLayoutDecoratorBase

Object to copy from

Checks whether objects are equal

C#
public override bool Equals(object obj)
Parameters:objobject

Object to compare

Returns:

bool

Result of comparing

Overrides: object.Equals(object)

Gets hash code

C#
public override int GetHashCode()
Returns:

int

Hash code

Overrides: object.GetHashCode()

Operators

Operator not equal

C#
public static bool operator !=(LayoutDecoratorBase layoutDecoratorOne, LayoutDecoratorBase layoutDecoratorTwo)
Parameters:layoutDecoratorOneLayoutDecoratorBase

First object for comparing

layoutDecoratorTwoLayoutDecoratorBase

Second object for comparing

Returns:

bool

Whether objects are not equal

Operator comparing

C#
public static bool operator ==(LayoutDecoratorBase layoutDecoratorOne, LayoutDecoratorBase layoutDecoratorTwo)
Parameters:layoutDecoratorOneLayoutDecoratorBase

First object for comparing

layoutDecoratorTwoLayoutDecoratorBase

Second object for comparing

Returns:

bool

Result of comparing