New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Defines the shape options.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class DiagramShape : StateManager, IMarkableStateManager, IStateManager

Inheritance: objectStateManagerDiagramShape

Implements: IMarkableStateManagerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public DiagramShape()

Properties

Defines default options for the shape connectors.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ConnectorDefaults ConnectorDefaultsSettings { get; }

Defines the connectors the shape owns.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramShapeConnectorsCollection ConnectorsCollection { get; }

Defines the shapes content settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeContent ContentSettings { get; }

Specifies editable properties for shapes

C#
public bool Editable { get; set; }

Specifies editable properties for shapes

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeEditable EditableSettings { get; }

Defines the fill options of the shape.

C#
public string Fill { get; set; }

Defines the fill options of the shape.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeFill FillSettings { get; }

Defines the height of the shape when added to the diagram.

C#
public double Height { get; set; }

Defines the hover configuration.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeHover HoverSettings { get; }

The unique identifier for a Shape.

C#
public string Id { get; set; }

Defines the minimum height the shape should have, i.e. it cannot be resized to a value smaller than the given one.

C#
public double MinHeight { get; set; }

Defines the minimum width the shape should have, i.e. it cannot be resized to a value smaller than the given one.

C#
public double MinWidth { get; set; }

The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (http://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").

C#
public string Path { get; set; }

Defines the rotation applied to the shape.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeRotation RotationSettings { get; }

Specifies if the shape can be selected.

C#
public bool Selectable { get; set; }
C#
public string Source { get; set; }

Defines the stroke configuration.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeStroke StrokeSettings { get; }

Specifies the type of the Shape using any of the built-in shape type.

C#
public string Type { get; set; }

A function returning a visual element to render for this shape.

C#
public string Visual { get; set; }

Defines the width of the shape when added to the diagram.

C#
public double Width { get; set; }

Defines the x-coordinate of the shape when added to the diagram.

C#
public double X { get; set; }

Defines the y-coordinate of the shape when added to the diagram.

C#
public double Y { get; set; }

Methods

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()