New to Telerik UI for WPFStart a free 30-day trial

A shape with geometric content.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
[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

Initializes a new instance of the RadDiagramShape class.

C#
public RadDiagramShape()

Fields

GeometryProperty

DependencyProperty

The Geometry dependency property.

C#
public static readonly DependencyProperty GeometryProperty

Properties

Geometry

Geometry

Gets or sets the geometry this shape contains.

C#
public Geometry Geometry { get; set; }
Property Value:

The geometry or figure.

Implements: IGeometryShape.Geometry

Methods

Deserializes the specified info.

C#
public override void Deserialize(SerializationInfo info)
Parameters:infoSerializationInfo

The info.

Overrides: RadDiagramShapeBase.Deserialize(SerializationInfo)

Implements: ISerializable.Deserialize(SerializationInfo)

Creates a peer associated with this object.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

An instance of the .

Overrides: RadDiagramItem.OnCreateAutomationPeer()

Called when [geometry changed].

C#
protected virtual void OnGeometryChanged(Geometry oldGeometry, Geometry newGeometry)
Parameters:oldGeometryGeometry

The old geometry.

newGeometryGeometry

The new geometry.

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Resets the theme.

C#
public void ResetTheme()

Serializes this shape.

C#
public override SerializationInfo Serialize()
Returns:

SerializationInfo

Overrides: RadDiagramShapeBase.Serialize()

Implements: ISerializable.Serialize()

Events

GeometryChanged

EventHandler<PropertyEventArgs<Geometry>>

Occurs when [geometry changed].

C#
public event EventHandler<PropertyEventArgs<Geometry>> GeometryChanged