Class
RadDiagramShapeBase

Abstract base implementation of the IShape interface.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public abstract class RadDiagramShapeBase : RadDiagramItem, IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation

Inheritance: objectRadDiagramItemRadDiagramShapeBase

Derived Classes: RadDiagramContainerShapeRadDiagramShapeRadDiagramTextShape

Implements: ICollapsibleIContainerChildIDiagramItemIGroupableIPropertyChangedISerializableIShapeISupportManipulationISupportMouseOverISupportRotationISupportVirtualization

Inherited Members RadDiagramItem.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.OnCreateAutomationPeer()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

RadDiagramShapeBase()

Initializes a new instance of the RadDiagramShapeBase class.

Declaration

cs-api-definition
protected RadDiagramShapeBase()

Fields

ConnectorStyleProperty

Identifies the ConnectorStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectorStyleProperty

Field Value

DependencyProperty

ConnectorsProperty

Identifies the ConnectorsProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectorsProperty

Field Value

DependencyProperty

GlidingStyleProperty

Identifies the GlidingStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GlidingStyleProperty

Field Value

DependencyProperty

IsActiveConnectionInsideProperty

Identifies the IsActiveConnectionInside dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsActiveConnectionInsideProperty

Field Value

DependencyProperty

RotationAngleProperty

Identifies the RotationAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RotationAngleProperty

Field Value

DependencyProperty

UseDefaultConnectorsProperty

Identifies the UseDefaultConnectors dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty UseDefaultConnectorsProperty

Field Value

DependencyProperty

UseGlidingConnectorProperty

Identifies the UseGlidingConnector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty UseGlidingConnectorProperty

Field Value

DependencyProperty

Properties

ActualBounds

Gets the actual bounds.

Declaration

cs-api-definition
public Rect ActualBounds { get; }

Property Value

Rect

Implements ISupportRotation.ActualBounds

ConnectorStyle

Gets or sets the connector style.

Declaration

cs-api-definition
public Style ConnectorStyle { get; set; }

Property Value

Style

The connector style.

Connectors

Gets the connectors of this shape.

Declaration

cs-api-definition
public ConnectorCollection Connectors { get; }

Property Value

ConnectorCollection

Implements IShape.Connectors

GlidingStyle

Gets or sets the style of outline the gliding connection should follow.

Declaration

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

Property Value

GlidingStyle

Remarks

This property has only an effect if the UseGlidingConnector is set to true.

Gets the incoming links.

Declaration

cs-api-definition
public IEnumerable<IConnection> IncomingLinks { get; }

Property Value

IEnumerable<IConnection>

The incoming links.

Implements IShape.IncomingLinks

Gets the outgoing links.

Declaration

cs-api-definition
public IEnumerable<IConnection> OutgoingLinks { get; }

Property Value

IEnumerable<IConnection>

The outgoing links.

Implements IShape.OutgoingLinks

RotationAngle

Gets or sets the rotation angle.

Declaration

cs-api-definition
public double RotationAngle { get; set; }

Property Value

double

The rotation angle.

Implements ISupportRotation.RotationAngle

Transform

Gets the transform.

Declaration

cs-api-definition
protected TransformGroup Transform { get; }

Property Value

TransformGroup

UseDefaultConnectors

Gets or sets whether the default connectors should be defined on the shape.

Declaration

cs-api-definition
public bool UseDefaultConnectors { get; set; }

Property Value

bool

UseGlidingConnector

Gets or sets whether the gliding connector should be defined on the shape.

Declaration

cs-api-definition
public bool UseGlidingConnector { get; set; }

Property Value

bool

Methods

Deserialize(SerializationInfo)

Deserializes the serialization info in this diagram entity.

Declaration

cs-api-definition
public override void Deserialize(SerializationInfo info)

Parameters

info

SerializationInfo

A SerializationInfo instance.

Overrides RadDiagramItem.Deserialize(SerializationInfo)

Implements ISerializable.Deserialize(SerializationInfo)

GetXml()

Gets the XML representation of this shape.

Declaration

cs-api-definition
public string GetXml()

Returns

string

Remarks

This is based on the Serialize() method; if you wish to alter the returned XML you need to override that method.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadDiagramItem.OnApplyTemplate()

OnIsInEditModeChanged(bool, bool)

Called when IsInEditMode changes.

Declaration

cs-api-definition
protected override void OnIsInEditModeChanged(bool oldIsInEditMode, bool isInEditMode)

Parameters

oldIsInEditMode

bool

The old value of the property.

isInEditMode

bool

The current value of the property.

Overrides RadDiagramItem.OnIsInEditModeChanged(bool, bool)

OnPositionChanged(Point, Point)

Called when position changes.

Declaration

cs-api-definition
protected override void OnPositionChanged(Point oldPosition, Point newPosition)

Parameters

oldPosition

Point

The old position.

newPosition

Point

The new position.

Overrides RadDiagramItem.OnPositionChanged(Point, Point)

OnRotationAngleChanged(double, double)

Called when the rotation angle has changed.

Declaration

cs-api-definition
protected virtual void OnRotationAngleChanged(double newValue, double oldValue)

Parameters

newValue

double

The new value.

oldValue

double

The old value.

Serialize()

Serializes this instance.

Declaration

cs-api-definition
public override SerializationInfo Serialize()

Returns

SerializationInfo

Overrides RadDiagramItem.Serialize()

Implements ISerializable.Serialize()

UpdateVisualStates()

Updates the visual states.

Declaration

cs-api-definition
protected override void UpdateVisualStates()

Overrides RadDiagramItem.UpdateVisualStates()