New to Telerik ReportingStart a free 30-day trial

Corners

Class

Sets the edge type of rectangular shapes.

Definition

Namespace:Telerik.Reporting.Charting.Styles

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(CornersConverter))]
public class Corners : StateManagedObject, IChartingStateManagedItem, IChartingStateManager

Inheritance: objectStateManagedObjectCorners

Implements: IChartingStateManagedItemIChartingStateManager

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

Constructors

Create new instance of Corners class.

C#
public Corners()

Create new instance of Corners class.

C#
public Corners(CornerType topLeft, CornerType topRight, CornerType bottomLeft, CornerType bottomRight, int roundSize)
Parameters:topLeftCornerType

Type of top left corner

topRightCornerType

Type of top right corner

bottomLeftCornerType

Type of bottom left corner

bottomRightCornerType

Type of bottom right corner

roundSizeint

RoundSize of corners

Create new instance of Corners class.

C#
public Corners(int roundSize)
Parameters:roundSizeint

RoundSize for coners

Create new instance of Corners class.

C#
public Corners(object containerObject)
Parameters:containerObjectobject

Container object

Properties

Gets and sets the type of the bottom left corner of the rectangular shape.

C#
[SkinnableProperty]
[Browsable(true)]
[Bindable(true)]
public CornerType BottomLeft { get; set; }
Property Value:

Type of bottom left corner

Gets and sets the type of the bottom right corner of the rectangular shape.

C#
[SkinnableProperty]
[Browsable(true)]
[Bindable(true)]
public CornerType BottomRight { get; set; }
Property Value:

Type of bottom right corner

Gets and sets the round size of the corner.

C#
[SkinnableProperty]
[Browsable(true)]
[Bindable(true)]
public int RoundSize { get; set; }
Property Value:

Round size of corners

Gets and sets the type of the top left corner of the rectangular shape.

C#
[SkinnableProperty]
[Browsable(true)]
[Bindable(true)]
public CornerType TopLeft { get; set; }
Property Value:

Type of top left corner

Gets and sets the type of the top right corner of the rectangular shape.

C#
[SkinnableProperty]
[Browsable(true)]
[Bindable(true)]
public CornerType TopRight { get; set; }
Property Value:

Type of top right corner

Methods

Clone()

object

Clone this object

C#
public object Clone()
Returns:

object

New instance of Corners type

Copy fields from specified object

C#
protected void CopyFrom(Corners sourceCorners)
Parameters:sourceCornersCorners

Object to copy from

Compare two objects of Corners type

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

Object to compare with

Returns:

bool

Whether objects equal

Overrides: object.Equals(object)

Gets HashCode

C#
public override int GetHashCode()
Returns:

int

HashCode

Overrides: object.GetHashCode()

Converts the specified string to a Corners.

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

The string to convert.

cultureCultureInfo

CultureInfo used

Returns:

Corners

Object of corners type

Converts the specified string to Corners.

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

The string to convert.

Returns:

Corners

Corners that represents the specified string.

Set specified type for all corners

C#
public void SetCornersType(CornerType cornerType)
Parameters:cornerTypeCornerType

Type of corners

Operators

Implicitly creates a Corners from the specified string.

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

The string to parse

Returns:

Corners

Object of corners type