New to Telerik ReportingStart a free 30-day trial

Margins base class

Definition

Constructors

Creates new instance of ChartMargins class.

C#
public ChartMargins()

Creates new instance of ChartMargins class.

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

Top margin in pixels

rightint

Right margin in pixels

bottomint

Bottom margin in pixels

leftint

Left margin in pixels

Creates new instance of ChartMargins class.

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

Container object

topUnit

Top margin in pixels or percents

rightUnit

Right margin in pixels or percents

bottomUnit

Bottom margin in pixels or percents

leftUnit

Left margin in pixels or percents

Creates new instance of ChartMargins class.

C#
public ChartMargins(object containerObject)
Parameters:containerObjectobject

Container object

Creates new instance of ChartMargins class.

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

Top margin in pixels or percents

rightUnit

Right margin in pixels or percents

bottomUnit

Bottom margin in pixels or percents

leftUnit

Left margin in pixels or percents

Creates new instance of ChartMargins class.

C#
public ChartMargins(Unit margin)
Parameters:marginUnit

Value to set for all margins

Methods

Converts the specified string to an instance of ChartMargins.

C#
public static ChartMargins Parse(string value, CultureInfo culture)
Parameters:valuestring

The string to convert from.

cultureCultureInfo

Culture info

Returns:

ChartMargins

New instance of ChartMargins from the specified string

Converts the specified string to an instance of ChartMargins.

C#
public static ChartMargins Parse(string value)
Parameters:valuestring

The string to convert from.

Returns:

ChartMargins

New instance of ChartMargins from the specified string

Operators

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

C#
public static implicit operator ChartMargins(string value)
Parameters:valuestring

The string to parse

Returns:

ChartMargins

New instance of ChartMargins from the specified string