skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadDiagramShapeBase

Abstract base implementation of the IShape interface.

Inheritance
System.Object
RadDiagramItem
RadDiagramShapeBase
RadDiagramContainerShape
RadDiagramShape
RadDiagramTextShape
Inherited Members
RadDiagramItem.ZIndexProperty
RadDiagramItem.IsSelectedProperty
RadDiagramItem.PositionProperty
RadDiagramItem.IsInEditModeProperty
RadDiagramItem.IsEditableProperty
RadDiagramItem.EditTemplateProperty
RadDiagramItem.StrokeProperty
RadDiagramItem.StrokeThicknessProperty
RadDiagramItem.StrokeDashArrayProperty
RadDiagramItem.GroupProperty
RadDiagramItem.IsResizingEnabledProperty
RadDiagramItem.IsRotationEnabledProperty
RadDiagramItem.IsDraggingEnabledProperty
RadDiagramItem.IsConnectorsManipulationEnabledProperty
RadDiagramItem.IsManipulationAdornerVisibleProperty
RadDiagramItem.AllowDeleteProperty
RadDiagramItem.AllowCutProperty
RadDiagramItem.AllowCopyProperty
RadDiagramItem.AllowPasteProperty
RadDiagramItem.PreviewBeginEditEvent
RadDiagramItem.BeginEditEvent
RadDiagramItem.PreviewEndEditEvent
RadDiagramItem.EndEditEvent
RadDiagramItem.add_PreviewBeginEdit(RadRoutedEventHandler)
RadDiagramItem.remove_PreviewBeginEdit(RadRoutedEventHandler)
RadDiagramItem.add_BeginEdit(RadRoutedEventHandler)
RadDiagramItem.remove_BeginEdit(RadRoutedEventHandler)
RadDiagramItem.IDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)
RadDiagramItem.RefreshIsSelectedInGroup()
RadDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)
RadDiagramItem.OnPropertyChanged(String)
RadDiagramItem.OnIsEditableChanged(Boolean, Boolean)
RadDiagramItem.OnIsSelectedChanged(Boolean, Boolean)
RadDiagramItem.OnZIndexChanged(Int32, Int32)
RadDiagramItem.OnSizeChanged(Size, Size)
RadDiagramItem.OnGroupNameChanged()
RadDiagramItem.OnStrokeThicknessChanged()
RadDiagramItem.OnPositionCoerced(Point)
RadDiagramItem.OnIsConnectorsManipulationEnabledChanged(Boolean, Boolean)
RadDiagramItem.OnCreateAutomationPeer()
RadDiagramItem.ISupportVirtualization.VirtualizationState
RadDiagramItem.IsSelected
RadDiagramItem.ParentGroup
RadDiagramItem.ParentContainer
RadDiagramItem.IsInEditMode
RadDiagramItem.IsEditable
RadDiagramItem.ZIndex
RadDiagramItem.Position
RadDiagramItem.X
RadDiagramItem.Y
RadDiagramItem.Bounds
RadDiagramItem.IsDynamic
RadDiagramItem.ICollapsible.IsCollapsed
RadDiagramItem.Id
RadDiagramItem.EditTemplate
RadDiagramItem.Stroke
RadDiagramItem.StrokeThickness
RadDiagramItem.StrokeDashArray
RadDiagramItem.IsRotationEnabled
RadDiagramItem.IsResizingEnabled
RadDiagramItem.IsDraggingEnabled
RadDiagramItem.IsConnectorsManipulationEnabled
RadDiagramItem.IsManipulationAdornerVisible
RadDiagramItem.AllowDelete
RadDiagramItem.AllowCut
RadDiagramItem.AllowCopy
RadDiagramItem.AllowPaste
RadDiagramItem.IsSelectedInGroup
RadDiagramItem.Diagram
RadDiagramItem.ServiceLocator
RadDiagramItem.ActualSize
RadDiagramItem.IsServiceManipulation
RadDiagramItem.PropertyChanged
RadDiagramItem.ParentGroupChanged
RadDiagramItem.PreviewBeginEdit
RadDiagramItem.BeginEdit
RadDiagramItem.PreviewEndEdit
RadDiagramItem.EndEdit
Namespace: Telerik.Windows.Controls.Diagrams
Assembly: Telerik.Windows.Controls.Diagrams.dll

Syntax

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

Constructors

RadDiagramShapeBase()

Initializes a new instance of the RadDiagramShapeBase class.

Declaration
protected RadDiagramShapeBase()

Fields

ConnectorsProperty

Identifies the ConnectorsProperty dependency property.

Declaration
public static readonly DependencyProperty ConnectorsProperty
Field Value
System.Windows.DependencyProperty

ConnectorStyleProperty

Identifies the ConnectorStyle dependency property.

Declaration
public static readonly DependencyProperty ConnectorStyleProperty
Field Value
System.Windows.DependencyProperty

GlidingStyleProperty

Identifies the GlidingStyle dependency property.

Declaration
public static readonly DependencyProperty GlidingStyleProperty
Field Value
System.Windows.DependencyProperty

IsActiveConnectionInsideProperty

Identifies the IsActiveConnectionInside dependency property.

Declaration
public static readonly DependencyProperty IsActiveConnectionInsideProperty
Field Value
System.Windows.DependencyProperty

RotationAngleProperty

Identifies the RotationAngle dependency property.

Declaration
public static readonly DependencyProperty RotationAngleProperty
Field Value
System.Windows.DependencyProperty

UseDefaultConnectorsProperty

Identifies the UseDefaultConnectors dependency property.

Declaration
public static readonly DependencyProperty UseDefaultConnectorsProperty
Field Value
System.Windows.DependencyProperty

UseGlidingConnectorProperty

Identifies the UseGlidingConnector dependency property.

Declaration
public static readonly DependencyProperty UseGlidingConnectorProperty
Field Value
System.Windows.DependencyProperty

Properties

ActualBounds

Gets the actual bounds.

Declaration
public Rect ActualBounds { get; }
Property Value
System.Windows.Rect

Implements
ISupportRotation.ActualBounds

Connectors

Gets the connectors of this shape.

Declaration
public ConnectorCollection Connectors { get; }
Property Value
ConnectorCollection

Implements
IShape.Connectors

ConnectorStyle

Gets or sets the connector style.

Declaration
public Style ConnectorStyle { get; set; }
Property Value
System.Windows.Style

The connector style.

GlidingStyle

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

Declaration
public GlidingStyle GlidingStyle { get; set; }
Property Value
GlidingStyle

Remarks

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

See Also
ConnectorPosition
UseGlidingConnector

IncomingLinks

Gets the incoming links.

Declaration
public IEnumerable<IConnection> IncomingLinks { get; }
Property Value
System.Collections.Generic.IEnumerable<IConnection>

The incoming links.

Implements
IShape.IncomingLinks

OutgoingLinks

Gets the outgoing links.

Declaration
public IEnumerable<IConnection> OutgoingLinks { get; }
Property Value
System.Collections.Generic.IEnumerable<IConnection>

The outgoing links.

Implements
IShape.OutgoingLinks

RotationAngle

Gets or sets the rotation angle.

Declaration
public double RotationAngle { get; set; }
Property Value
System.Double

The rotation angle.

Implements
ISupportRotation.RotationAngle

Transform

Gets the transform.

Declaration
protected TransformGroup Transform { get; }
Property Value
System.Windows.Media.TransformGroup

UseDefaultConnectors

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

Declaration
public bool UseDefaultConnectors { get; set; }
Property Value
System.Boolean

UseGlidingConnector

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

Declaration
public bool UseGlidingConnector { get; set; }
Property Value
System.Boolean

Methods

Deserialize(SerializationInfo)

Deserializes the serialization info in this diagram entity.

Declaration
public override void Deserialize(SerializationInfo info)
Parameters
SerializationInfo info

A SerializationInfo instance.

Overrides
RadDiagramItem.Deserialize(SerializationInfo)
Implements
ISerializable.Deserialize(SerializationInfo)

GetXml()

Gets the XML representation of this shape.

Declaration
public string GetXml()
Returns
System.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 System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration
public override void OnApplyTemplate()
Overrides
RadDiagramItem.OnApplyTemplate()

OnIsInEditModeChanged(Boolean, Boolean)

Called when IsInEditMode changes.

Declaration
protected override void OnIsInEditModeChanged(bool oldIsInEditMode, bool isInEditMode)
Parameters
System.Boolean oldIsInEditMode

The old value of the property.

System.Boolean isInEditMode

The current value of the property.

Overrides
RadDiagramItem.OnIsInEditModeChanged(Boolean, Boolean)

OnPositionChanged(Point, Point)

Called when position changes.

Declaration
protected override void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
System.Windows.Point oldPosition

The old position.

System.Windows.Point newPosition

The new position.

Overrides
RadDiagramItem.OnPositionChanged(Point, Point)

OnRotationAngleChanged(Double, Double)

Called when the rotation angle has changed.

Declaration
protected virtual void OnRotationAngleChanged(double newValue, double oldValue)
Parameters
System.Double newValue

The new value.

System.Double oldValue

The old value.

Serialize()

Serializes this instance.

Declaration
public override SerializationInfo Serialize()
Returns
SerializationInfo

Overrides
RadDiagramItem.Serialize()
Implements
ISerializable.Serialize()

UpdateVisualStates()

Updates the visual states.

Declaration
protected override void UpdateVisualStates()
Overrides
RadDiagramItem.UpdateVisualStates()

Explicit Interface Implementations

IDiagramItem.get_Content()

Declaration
object IDiagramItem.get_Content()
Returns
System.Object

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.get_Content()

IDiagramItem.get_RenderTransformOrigin()

Declaration
Point IDiagramItem.get_RenderTransformOrigin()
Returns
System.Windows.Point

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.get_RenderTransformOrigin()

IDiagramItem.get_Visibility()

Declaration
Visibility IDiagramItem.get_Visibility()
Returns
System.Windows.Visibility

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.get_Visibility()

IDiagramItem.set_Content(Object)

Declaration
void IDiagramItem.set_Content(object value)
Parameters
System.Object value

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.set_Content(System.Object)

IDiagramItem.set_IsEnabled(Boolean)

Declaration
void IDiagramItem.set_IsEnabled(bool value)
Parameters
System.Boolean value

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.set_IsEnabled(System.Boolean)

IDiagramItem.set_RenderTransformOrigin(Point)

Declaration
void IDiagramItem.set_RenderTransformOrigin(Point value)
Parameters
System.Windows.Point value

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.set_RenderTransformOrigin(System.Windows.Point)

IDiagramItem.set_Visibility(Visibility)

Declaration
void IDiagramItem.set_Visibility(Visibility value)
Parameters
System.Windows.Visibility value

Implements
Telerik.Windows.Diagrams.Core.IDiagramItem.set_Visibility(System.Windows.Visibility)

IShape.get_Height()

Declaration
double IShape.get_Height()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_Height()

IShape.get_MaxHeight()

Declaration
double IShape.get_MaxHeight()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_MaxHeight()

IShape.get_MaxWidth()

Declaration
double IShape.get_MaxWidth()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_MaxWidth()

IShape.get_MinHeight()

Declaration
double IShape.get_MinHeight()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_MinHeight()

IShape.get_MinWidth()

Declaration
double IShape.get_MinWidth()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_MinWidth()

IShape.get_Width()

Declaration
double IShape.get_Width()
Returns
System.Double

Implements
Telerik.Windows.Diagrams.Core.IShape.get_Width()

IShape.IsConnectorsAdornerVisible

Gets or sets a value indicating whether this instance is connectors adorner visible.

Declaration
bool IShape.IsConnectorsAdornerVisible { get; set; }
Returns
System.Boolean

true if this instance is connectors adorner visible; otherwise, false.

Implements
IShape.IsConnectorsAdornerVisible

IShape.set_Height(Double)

Declaration
void IShape.set_Height(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_Height(System.Double)

IShape.set_MaxHeight(Double)

Declaration
void IShape.set_MaxHeight(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_MaxHeight(System.Double)

IShape.set_MaxWidth(Double)

Declaration
void IShape.set_MaxWidth(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_MaxWidth(System.Double)

IShape.set_MinHeight(Double)

Declaration
void IShape.set_MinHeight(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_MinHeight(System.Double)

IShape.set_MinWidth(Double)

Declaration
void IShape.set_MinWidth(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_MinWidth(System.Double)

IShape.set_Width(Double)

Declaration
void IShape.set_Width(double value)
Parameters
System.Double value

Implements
Telerik.Windows.Diagrams.Core.IShape.set_Width(System.Double)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.