Class
ChartMargins

Margins base class

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(MarginsConverter))]
public class ChartMargins : LayoutDecoratorBase, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectLayoutDecoratorBaseChartMargins

Derived Classes: ChartMarginsLegendChartMarginsPlotAreaChartMarginsTitle

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members LayoutDecoratorBase.Equals(object)LayoutDecoratorBase.GetHashCode()LayoutDecoratorBase.Clone()LayoutDecoratorBase.CopyFrom(LayoutDecoratorBase)LayoutDecoratorBase.LeftLayoutDecoratorBase.RightLayoutDecoratorBase.TopLayoutDecoratorBase.BottomStateManagedObject.CloneState()StateManagedObject.SaveViewState()StateManagedObject.TrackViewState()StateManagedObject.LoadViewState(object)StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase

Constructors

ChartMargins()

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins()

ChartMargins(Unit)

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins(Unit margin)

Parameters

margin

Unit

Value to set for all margins

ChartMargins(Unit, Unit, Unit, Unit)

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins(Unit top, Unit right, Unit bottom, Unit left)

Parameters

top

Unit

Top margin in pixels or percents

right

Unit

Right margin in pixels or percents

bottom

Unit

Bottom margin in pixels or percents

left

Unit

Left margin in pixels or percents

ChartMargins(int, int, int, int)

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins(int top, int right, int bottom, int left)

Parameters

top

int

Top margin in pixels

right

int

Right margin in pixels

bottom

int

Bottom margin in pixels

left

int

Left margin in pixels

ChartMargins(object)

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins(object containerObject)

Parameters

containerObject

object

Container object

ChartMargins(object, Unit, Unit, Unit, Unit)

Creates new instance of ChartMargins class.

Declaration

cs-api-definition
public ChartMargins(object containerObject, Unit top, Unit right, Unit bottom, Unit left)

Parameters

containerObject

object

Container object

top

Unit

Top margin in pixels or percents

right

Unit

Right margin in pixels or percents

bottom

Unit

Bottom margin in pixels or percents

left

Unit

Left margin in pixels or percents

Methods

Parse(string)

Converts the specified string to an instance of ChartMargins.

Declaration

cs-api-definition
public static ChartMargins Parse(string value)

Parameters

value

string

The string to convert from.

Returns

ChartMargins

New instance of ChartMargins from the specified string

Parse(string, CultureInfo)

Converts the specified string to an instance of ChartMargins.

Declaration

cs-api-definition
public static ChartMargins Parse(string value, CultureInfo culture)

Parameters

value

string

The string to convert from.

culture

CultureInfo

Culture info

Returns

ChartMargins

New instance of ChartMargins from the specified string

Operators

implicit operator ChartMargins(string)

Implicitly creates a new instance of ChartMargins from the specified string.

Declaration

cs-api-definition
public static implicit operator ChartMargins(string value)

Parameters

value

string

The string to parse

Returns

ChartMargins

New instance of ChartMargins from the specified string