Class
RadDiagramShape

A shape with geometric content.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
[Themable]
[TelerikToolboxCategory("Diagram")]
public class RadDiagramShape : RadDiagramShapeBase, IGeometryShape, IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation

Inheritance: objectRadDiagramItemRadDiagramShapeBaseRadDiagramShape

Derived Classes: RadDiagramSketchShape

Implements: ICollapsibleIContainerChildIDiagramItemIGeometryShapeIGroupableIPropertyChangedISerializableIShapeISupportManipulationISupportMouseOverISupportRotationISupportVirtualization

Inherited Members RadDiagramShapeBase.IsActiveConnectionInsidePropertyRadDiagramShapeBase.RotationAnglePropertyRadDiagramShapeBase.ConnectorStylePropertyRadDiagramShapeBase.UseDefaultConnectorsPropertyRadDiagramShapeBase.UseGlidingConnectorPropertyRadDiagramShapeBase.GlidingStylePropertyRadDiagramShapeBase.ConnectorsPropertyRadDiagramShapeBase.GetXml()RadDiagramShapeBase.OnApplyTemplate()RadDiagramShapeBase.UpdateVisualStates()RadDiagramShapeBase.OnIsInEditModeChanged(bool, bool)RadDiagramShapeBase.OnRotationAngleChanged(double, double)RadDiagramShapeBase.OnPositionChanged(Point, Point)RadDiagramShapeBase.RotationAngleRadDiagramShapeBase.ConnectorsRadDiagramShapeBase.ActualBoundsRadDiagramShapeBase.ConnectorStyleRadDiagramShapeBase.IncomingLinksRadDiagramShapeBase.OutgoingLinksRadDiagramShapeBase.UseDefaultConnectorsRadDiagramShapeBase.UseGlidingConnectorRadDiagramShapeBase.GlidingStyleRadDiagramShapeBase.TransformRadDiagramItem.ZIndexPropertyRadDiagramItem.IsSelectedPropertyRadDiagramItem.PositionPropertyRadDiagramItem.IsInEditModePropertyRadDiagramItem.IsEditablePropertyRadDiagramItem.EditTemplatePropertyRadDiagramItem.StrokePropertyRadDiagramItem.StrokeThicknessPropertyRadDiagramItem.StrokeDashArrayPropertyRadDiagramItem.GroupPropertyRadDiagramItem.IsResizingEnabledPropertyRadDiagramItem.IsRotationEnabledPropertyRadDiagramItem.IsDraggingEnabledPropertyRadDiagramItem.IsConnectorsManipulationEnabledPropertyRadDiagramItem.IsManipulationAdornerVisiblePropertyRadDiagramItem.AllowDeletePropertyRadDiagramItem.AllowCutPropertyRadDiagramItem.AllowCopyPropertyRadDiagramItem.AllowPastePropertyRadDiagramItem.PreviewBeginEditEventRadDiagramItem.BeginEditEventRadDiagramItem.PreviewEndEditEventRadDiagramItem.EndEditEventRadDiagramItem.RefreshIsSelectedInGroup()RadDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)RadDiagramItem.OnPropertyChanged(string)RadDiagramItem.OnIsEditableChanged(bool, bool)RadDiagramItem.OnIsSelectedChanged(bool, bool)RadDiagramItem.OnZIndexChanged(int, int)RadDiagramItem.OnSizeChanged(Size, Size)RadDiagramItem.OnGroupNameChanged()RadDiagramItem.OnStrokeThicknessChanged()RadDiagramItem.OnPositionCoerced(Point)RadDiagramItem.OnIsConnectorsManipulationEnabledChanged(bool, bool)RadDiagramItem.IsSelectedRadDiagramItem.ParentGroupRadDiagramItem.ParentContainerRadDiagramItem.IsInEditModeRadDiagramItem.IsEditableRadDiagramItem.ZIndexRadDiagramItem.PositionRadDiagramItem.XRadDiagramItem.YRadDiagramItem.BoundsRadDiagramItem.IsDynamicRadDiagramItem.IdRadDiagramItem.EditTemplateRadDiagramItem.StrokeRadDiagramItem.StrokeThicknessRadDiagramItem.StrokeDashArrayRadDiagramItem.IsRotationEnabledRadDiagramItem.IsResizingEnabledRadDiagramItem.IsDraggingEnabledRadDiagramItem.IsConnectorsManipulationEnabledRadDiagramItem.IsManipulationAdornerVisibleRadDiagramItem.AllowDeleteRadDiagramItem.AllowCutRadDiagramItem.AllowCopyRadDiagramItem.AllowPasteRadDiagramItem.IsSelectedInGroupRadDiagramItem.DiagramRadDiagramItem.ServiceLocatorRadDiagramItem.ActualSizeRadDiagramItem.IsServiceManipulationRadDiagramItem.PropertyChangedRadDiagramItem.ParentGroupChangedRadDiagramItem.PreviewBeginEditRadDiagramItem.BeginEditRadDiagramItem.PreviewEndEditRadDiagramItem.EndEdit

Constructors

RadDiagramShape()

Initializes a new instance of the RadDiagramShape class.

Declaration

cs-api-definition
public RadDiagramShape()

Fields

GeometryProperty

The Geometry dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GeometryProperty

Field Value

DependencyProperty

Properties

Geometry

Gets or sets the geometry this shape contains.

Declaration

cs-api-definition
public Geometry Geometry { get; set; }

Property Value

Geometry

The geometry or figure.

Implements IGeometryShape.Geometry

Methods

Deserialize(SerializationInfo)

Deserializes the specified info.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public override void Deserialize(SerializationInfo info)

Parameters

info

SerializationInfo

The info.

Overrides RadDiagramShapeBase.Deserialize(SerializationInfo)

Implements ISerializable.Deserialize(SerializationInfo)

OnCreateAutomationPeer()

Creates a peer associated with this object.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

An instance of the .

Overrides RadDiagramItem.OnCreateAutomationPeer()

OnGeometryChanged(Geometry, Geometry)

Called when [geometry changed].

Declaration

cs-api-definition
protected virtual void OnGeometryChanged(Geometry oldGeometry, Geometry newGeometry)

Parameters

oldGeometry

Geometry

The old geometry.

newGeometry

Geometry

The new geometry.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

Serialize()

Serializes this shape.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public override SerializationInfo Serialize()

Returns

SerializationInfo

Overrides RadDiagramShapeBase.Serialize()

Implements ISerializable.Serialize()

Events

GeometryChanged

Occurs when [geometry changed].

Declaration

cs-api-definition
public event EventHandler<PropertyEventArgs<Geometry>> GeometryChanged

Event Value

EventHandler<PropertyEventArgs<Geometry>>