Class RadDiagramShapeBase
Abstract base implementation of the IShape interface.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public abstract class RadDiagramShapeBase : RadDiagramItem, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, 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 RadProperty ConnectorsProperty
Field Value
|
RadProperty
|
GlidingStyleProperty
Identifies the GlidingStyle dependency property.
Declaration
public static readonly RadProperty GlidingStyleProperty
Field Value
|
RadProperty
|
IsActiveConnectionInsideProperty
Identifies the IsActiveConnectionInside dependency property.
Declaration
public static readonly RadProperty IsActiveConnectionInsideProperty
Field Value
|
RadProperty
|
RotationAngleProperty
Identifies the RotationAngle dependency property.
Declaration
public static readonly RadProperty RotationAngleProperty
Field Value
|
RadProperty
|
UseDefaultConnectorsProperty
Identifies the UseDefaultConnectors dependency property.
Declaration
public static readonly RadProperty UseDefaultConnectorsProperty
Field Value
|
RadProperty
|
UseGlidingConnectorProperty
Identifies the UseGlidingConnector dependency property.
Declaration
public static readonly RadProperty UseGlidingConnectorProperty
Field Value
|
RadProperty
|
Properties
ActualBounds
Gets the actual bounds.
Declaration
public Rect ActualBounds { get; }
Property Value
|
Rect
|
Implements
Connectors
Gets the connectors of this shape.
Declaration
public ConnectorCollection Connectors { get; }
Property Value
|
ConnectorCollection
|
Implements
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
Height
Height
Declaration
public override double Height { get; set; }
Property Value
|
System.Double
|
Overrides
Implements
IncomingLinks
Gets the incoming links.
Declaration
public IEnumerable<IConnection> IncomingLinks { get; }
Property Value
|
System.Collections.Generic.IEnumerable<IConnection>
The incoming links. |
Implements
MaxHeight
MaxHeight
Declaration
public double MaxHeight { get; set; }
Property Value
|
System.Double
|
Implements
MaxSize
Get or sets the maximum size to apply on an element when layout is calculated.
Declaration
public override Size MaxSize { get; set; }
Property Value
|
System.Drawing.Size
|
Overrides
MaxWidth
MaxWidth
Declaration
public double MaxWidth { get; set; }
Property Value
|
System.Double
|
Implements
MinHeight
MinHeight
Declaration
public double MinHeight { get; set; }
Property Value
|
System.Double
|
Implements
MinSize
Get or sets the minimum size to apply on an element when layout is calculated.
Declaration
public override Size MinSize { get; set; }
Property Value
|
System.Drawing.Size
|
Overrides
MinWidth
MinWidth
Declaration
public double MinWidth { get; set; }
Property Value
|
System.Double
|
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
|
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
|
Width
Width
Declaration
public override double Width { get; set; }
Property Value
|
System.Double
|
Overrides
Implements
Methods
ArrangeOverride(SizeF)
ArrangeOverride
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
finalSize |
Returns
|
System.Drawing.SizeF
|
Overrides
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
|
Point
oldPosition
The old position. |
|
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
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
ISupportMouseOver.get_IsMouseOver()
Declaration
bool ISupportMouseOver.get_IsMouseOver()
Returns
|
System.Boolean
|