Class RadDiagramShapeBase
Abstract base implementation of the IShape interface.
Inherited Members
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
Connectors
Gets the connectors of this shape.
Declaration
public ConnectorCollection Connectors { get; }
Property Value
|
ConnectorCollection
|
Implements
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
IncomingLinks
Gets the incoming links.
Declaration
public IEnumerable<IConnection> IncomingLinks { get; }
Property Value
|
System.Collections.Generic.IEnumerable<IConnection>
The incoming links. |
Implements
OutgoingLinks
Gets the outgoing links.
Declaration
public IEnumerable<IConnection> OutgoingLinks { get; }
Property Value
|
System.Collections.Generic.IEnumerable<IConnection>
The outgoing links. |
Implements
RotationAngle
Gets or sets the rotation angle.
Declaration
public double RotationAngle { get; set; }
Property Value
|
System.Double
The rotation angle. |
Implements
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
Implements
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
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
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
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
Implements
UpdateVisualStates()
Updates the visual states.
Declaration
protected override void UpdateVisualStates()
Overrides
Explicit Interface Implementations
IDiagramItem.get_Content()
Declaration
object IDiagramItem.get_Content()
Returns
|
System.Object
|
Implements
IDiagramItem.get_RenderTransformOrigin()
Declaration
Point IDiagramItem.get_RenderTransformOrigin()
Returns
|
System.Windows.Point
|
Implements
IDiagramItem.get_Visibility()
Declaration
Visibility IDiagramItem.get_Visibility()
Returns
|
System.Windows.Visibility
|
Implements
IDiagramItem.set_Content(Object)
Declaration
void IDiagramItem.set_Content(object value)
Parameters
|
System.Object
value
|
Implements
IDiagramItem.set_IsEnabled(Boolean)
Declaration
void IDiagramItem.set_IsEnabled(bool value)
Parameters
|
System.Boolean
value
|
Implements
IDiagramItem.set_RenderTransformOrigin(Point)
Declaration
void IDiagramItem.set_RenderTransformOrigin(Point value)
Parameters
|
System.Windows.Point
value
|
Implements
IDiagramItem.set_Visibility(Visibility)
Declaration
void IDiagramItem.set_Visibility(Visibility value)
Parameters
|
System.Windows.Visibility
value
|
Implements
IShape.get_Height()
Declaration
double IShape.get_Height()
Returns
|
System.Double
|
Implements
IShape.get_MaxHeight()
Declaration
double IShape.get_MaxHeight()
Returns
|
System.Double
|
Implements
IShape.get_MaxWidth()
Declaration
double IShape.get_MaxWidth()
Returns
|
System.Double
|
Implements
IShape.get_MinHeight()
Declaration
double IShape.get_MinHeight()
Returns
|
System.Double
|
Implements
IShape.get_MinWidth()
Declaration
double IShape.get_MinWidth()
Returns
|
System.Double
|
Implements
IShape.get_Width()
Declaration
double IShape.get_Width()
Returns
|
System.Double
|
Implements
IShape.IsConnectorsAdornerVisible
Gets or sets a value indicating whether this instance is connectors adorner visible.
Declaration
bool IShape.IsConnectorsAdornerVisible { get; set; }
Returns
|
System.Boolean
|
Implements
IShape.set_Height(Double)
Declaration
void IShape.set_Height(double value)
Parameters
|
System.Double
value
|
Implements
IShape.set_MaxHeight(Double)
Declaration
void IShape.set_MaxHeight(double value)
Parameters
|
System.Double
value
|
Implements
IShape.set_MaxWidth(Double)
Declaration
void IShape.set_MaxWidth(double value)
Parameters
|
System.Double
value
|
Implements
IShape.set_MinHeight(Double)
Declaration
void IShape.set_MinHeight(double value)
Parameters
|
System.Double
value
|
Implements
IShape.set_MinWidth(Double)
Declaration
void IShape.set_MinWidth(double value)
Parameters
|
System.Double
value
|
Implements
IShape.set_Width(Double)
Declaration
void IShape.set_Width(double value)
Parameters
|
System.Double
value
|