Class RadDiagram
Represents the diagram control.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Diagrams.dll
Syntax
[TelerikToolboxCategory("Diagram")]
[Themable]
public class RadDiagram : Control, ISupportContainerGenerator<RadDiagramItem>, IThemable, IGraphInternal, IGraph, ISerializable, ISupportManipulation
Constructors
RadDiagram()
Fields
ActiveToolProperty
Identifies the ActiveTool dependency property.
Declaration
public static readonly DependencyProperty ActiveToolProperty
Field Value
System.Windows.DependencyProperty
|
AdditionalContentActivatedEvent
Identifies the AdditionalContentOpened routed event.
Declaration
public static readonly RoutedEvent AdditionalContentActivatedEvent
Field Value
System.Windows.RoutedEvent
|
AllowCopyProperty
Identifies the AllowCopy dependency property.
Declaration
public static readonly DependencyProperty AllowCopyProperty
Field Value
System.Windows.DependencyProperty
|
AllowCutProperty
Identifies the AllowCut dependency property.
Declaration
public static readonly DependencyProperty AllowCutProperty
Field Value
System.Windows.DependencyProperty
|
AllowDeleteProperty
Identifies the AllowDelete dependency property.
Declaration
public static readonly DependencyProperty AllowDeleteProperty
Field Value
System.Windows.DependencyProperty
|
AllowPasteProperty
Identifies the AllowPaste dependency property.
Declaration
public static readonly DependencyProperty AllowPasteProperty
Field Value
System.Windows.DependencyProperty
|
AutoLayoutProperty
Identifies the AutoLayout dependency property.
Declaration
public static readonly DependencyProperty AutoLayoutProperty
Field Value
System.Windows.DependencyProperty
|
CommandExecutedEvent
Identifies the CommandExecuted routed event.
Declaration
public static readonly RoutedEvent CommandExecutedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectionBridgeProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty ConnectionBridgeProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionDeserializedEvent
Identifies the ConnectionDeserialized routed event.
Declaration
public static readonly RoutedEvent ConnectionDeserializedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectionEditTemplateProperty
Identifies the ConnectionEditTemplate dependency property.
Declaration
public static readonly DependencyProperty ConnectionEditTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionEditTemplateSelectorProperty
Identifies the ConnectionEditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionEditTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionManipulationCompletedEvent
Identifies the ConnectionManipulationCompleted routed event.
Declaration
public static readonly RoutedEvent ConnectionManipulationCompletedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectionManipulationStartedEvent
Identifies the ConnectionManipulationStartedEvent routed event.
Declaration
public static readonly RoutedEvent ConnectionManipulationStartedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectionRoundedCornersProperty
Identifies the RoundedCorners dependency property.
Declaration
public static readonly DependencyProperty ConnectionRoundedCornersProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionSerializedEvent
Identifies the ConnectionSerialized routed event.
Declaration
public static readonly RoutedEvent ConnectionSerializedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectionStyleProperty
Identifies the ConnectionStyle dependency property.
Declaration
public static readonly DependencyProperty ConnectionStyleProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionStyleSelectorProperty
Identifies the ConnectionStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionStyleSelectorProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionTemplateProperty
Identifies the ConnectionTemplate dependency property.
Declaration
public static readonly DependencyProperty ConnectionTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ConnectionTemplateSelectorProperty
Identifies the ConnectionTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
ConnectorActivationChangedEvent
Identifies the ConnectorActivationChanged routed event.
Declaration
public static readonly RoutedEvent ConnectorActivationChangedEvent
Field Value
System.Windows.RoutedEvent
|
ConnectorStyleProperty
Identifies the ConnectorStyle dependency property.
Declaration
public static readonly DependencyProperty ConnectorStyleProperty
Field Value
System.Windows.DependencyProperty
|
ContainerShapeStyleProperty
Identifies the ContainerShapeStyle dependency property.
Declaration
public static readonly DependencyProperty ContainerShapeStyleProperty
Field Value
System.Windows.DependencyProperty
|
DeserializedEvent
Identifies the Deserialized routed event.
Declaration
public static readonly RoutedEvent DeserializedEvent
Field Value
System.Windows.RoutedEvent
|
DiagramLayoutCompletedEvent
Identifies the DiagramLayoutComplete routed event.
Declaration
public static readonly RoutedEvent DiagramLayoutCompletedEvent
Field Value
System.Windows.RoutedEvent
|
DisplayMemberPathProperty
Identifies the DisplayMemberPath dependency property.
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
System.Windows.DependencyProperty
|
DragEvent
Identifies the DragEvent routed event.
Declaration
public static readonly RoutedEvent DragEvent
Field Value
System.Windows.RoutedEvent
|
GraphSourceProperty
Identifies the GraphSource dependency property.
Declaration
public static readonly DependencyProperty GraphSourceProperty
Field Value
System.Windows.DependencyProperty
|
GroupsChangedEvent
Identifies the ItemsChanged routed event.
Declaration
public static readonly RoutedEvent GroupsChangedEvent
Field Value
System.Windows.RoutedEvent
|
GroupStyleProperty
Identifies the SelectedGroupBrush dependency property.
Declaration
public static readonly DependencyProperty GroupStyleProperty
Field Value
System.Windows.DependencyProperty
|
IsAdditionalContentVisibleProperty
Identifies the IsAdditionalContentVisible dependency property.
Declaration
public static readonly DependencyProperty IsAdditionalContentVisibleProperty
Field Value
System.Windows.DependencyProperty
|
IsBackgroundSurfaceVisibleProperty
Identifies the IsBackgroundSurfaceVisible dependency property.
Declaration
public static readonly DependencyProperty IsBackgroundSurfaceVisibleProperty
Field Value
System.Windows.DependencyProperty
|
IsConnectorsManipulationEnabledProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsDraggingEnabledProperty
Identifies the IsDraggingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsDraggingEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly DependencyProperty IsEditableProperty
Field Value
System.Windows.DependencyProperty
|
IsInformationAdornerVisibleProperty
Identifies the IsInformationAdornerVisible dependency property.
Declaration
public static readonly DependencyProperty IsInformationAdornerVisibleProperty
Field Value
System.Windows.DependencyProperty
|
IsManipulationAdornerVisibleProperty
Identifies the IsManipulationAdornerVisible dependency property.
Declaration
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty
Field Value
System.Windows.DependencyProperty
|
IsPanEnabledProperty
Identifies the IsPanEnabled dependency property.
Declaration
public static readonly DependencyProperty IsPanEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsResizingEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsRotationEnabledProperty
Identifies the IsRotationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsRotationEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsSnapToGridEnabledProperty
Identifies the IsSnapEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSnapToGridEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsSnapToItemsEnabledProperty
Identifies the IsSnapToItemsEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSnapToItemsEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsZoomEnabledProperty
Identifies the IsZoomEnabled dependency property.
Declaration
public static readonly DependencyProperty IsZoomEnabledProperty
Field Value
System.Windows.DependencyProperty
|
ItemsChangedEvent
Identifies the ItemsChanged routed event.
Declaration
public static readonly RoutedEvent ItemsChangedEvent
Field Value
System.Windows.RoutedEvent
|
ItemsChangingEvent
Identifies the ItemsChanging routed event.
Declaration
public static readonly RoutedEvent ItemsChangingEvent
Field Value
System.Windows.RoutedEvent
|
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
System.Windows.DependencyProperty
|
MetadataDeserializedEvent
Identifies the MetadataDeserialized routed event.
Declaration
public static readonly RoutedEvent MetadataDeserializedEvent
Field Value
System.Windows.RoutedEvent
|
MetadataSerializedEvent
Identifies the MetadataSerialized routed event.
Declaration
public static readonly RoutedEvent MetadataSerializedEvent
Field Value
System.Windows.RoutedEvent
|
PanEvent
Identifies the PreviewPan routed event.
Declaration
public static readonly RoutedEvent PanEvent
Field Value
System.Windows.RoutedEvent
|
PositionChangedEvent
Identifies the PositionChanged routed event.
Declaration
public static readonly RoutedEvent PositionChangedEvent
Field Value
System.Windows.RoutedEvent
|
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
System.Windows.DependencyProperty
|
PreviewAdditionalContentActivatedEvent
Identifies the PreviewAdditionalContentOpened routed event.
Declaration
public static readonly RoutedEvent PreviewAdditionalContentActivatedEvent
Field Value
System.Windows.RoutedEvent
|
PreviewDragEvent
Identifies the PreviewDrag routed event.
Declaration
public static readonly RoutedEvent PreviewDragEvent
Field Value
System.Windows.RoutedEvent
|
PreviewPanEvent
Identifies the PreviewPan routed event.
Declaration
public static readonly RoutedEvent PreviewPanEvent
Field Value
System.Windows.RoutedEvent
|
PreviewResizeEvent
Identifies the PreviewResize routed event.
Declaration
public static readonly RoutedEvent PreviewResizeEvent
Field Value
System.Windows.RoutedEvent
|
PreviewRotateEvent
Identifies the PreviewRotate routed event.
Declaration
public static readonly RoutedEvent PreviewRotateEvent
Field Value
System.Windows.RoutedEvent
|
PreviewSelectionChangedEvent
Identifies the PreviewSelectionChanged routed event.
Declaration
public static readonly RoutedEvent PreviewSelectionChangedEvent
Field Value
System.Windows.RoutedEvent
|
PreviewZoomEvent
Identifies the PreviewZoom routed event.
Declaration
public static readonly RoutedEvent PreviewZoomEvent
Field Value
System.Windows.RoutedEvent
|
RectSelectionModeProperty
Identifies the RectSelectionMode dependency property.
Declaration
public static readonly DependencyProperty RectSelectionModeProperty
Field Value
System.Windows.DependencyProperty
|
ResizeEvent
Identifies the Resize routed event.
Declaration
public static readonly RoutedEvent ResizeEvent
Field Value
System.Windows.RoutedEvent
|
RotateEvent
Identifies the Rotate routed event.
Declaration
public static readonly RoutedEvent RotateEvent
Field Value
System.Windows.RoutedEvent
|
RouteConnectionsProperty
Identifies the RouteConnections dependency property.
Declaration
public static readonly DependencyProperty RouteConnectionsProperty
Field Value
System.Windows.DependencyProperty
|
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
System.Windows.RoutedEvent
|
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
System.Windows.DependencyProperty
|
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
System.Windows.DependencyProperty
|
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
System.Windows.RoutedEvent
|
SelectionModeProperty
Identifies the SelectionMode dependency property.
Declaration
public static readonly DependencyProperty SelectionModeProperty
Field Value
System.Windows.DependencyProperty
|
SelectionRectangleStyleProperty
Identifies the SelectionRectangleStyle dependency property.
Declaration
public static readonly DependencyProperty SelectionRectangleStyleProperty
Field Value
System.Windows.DependencyProperty
|
SerializedEvent
Identifies the Serialized routed event.
Declaration
public static readonly RoutedEvent SerializedEvent
Field Value
System.Windows.RoutedEvent
|
ShapeClickedEvent
Identifies the ShapeClicked routed event.
Declaration
public static readonly RoutedEvent ShapeClickedEvent
Field Value
System.Windows.RoutedEvent
|
ShapeDeserializedEvent
Identifies the ShapeDeserialized routed event.
Declaration
public static readonly RoutedEvent ShapeDeserializedEvent
Field Value
System.Windows.RoutedEvent
|
ShapeDoubleClickedEvent
Identifies the ShapeDoubleClicked routed event.
Declaration
public static readonly RoutedEvent ShapeDoubleClickedEvent
Field Value
System.Windows.RoutedEvent
|
ShapeEditTemplateProperty
Identifies the ShapeEditTemplate dependency property.
Declaration
public static readonly DependencyProperty ShapeEditTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ShapeEditTemplateSelectorProperty
Identifies the ShapeEditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeEditTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
ShapeSerializedEvent
Identifies the ShapeSerialized routed event.
Declaration
public static readonly RoutedEvent ShapeSerializedEvent
Field Value
System.Windows.RoutedEvent
|
ShapeStyleProperty
Identifies the ShapeStyle dependency property.
Declaration
public static readonly DependencyProperty ShapeStyleProperty
Field Value
System.Windows.DependencyProperty
|
ShapeStyleSelectorProperty
Identifies the ShapeStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeStyleSelectorProperty
Field Value
System.Windows.DependencyProperty
|
ShapeTemplateProperty
Identifies the ShapeTemplate dependency property.
Declaration
public static readonly DependencyProperty ShapeTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ShapeTemplateSelectorProperty
Identifies the ShapeTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
SnapXProperty
Identifies the SnapX dependency property.
Declaration
public static readonly DependencyProperty SnapXProperty
Field Value
System.Windows.DependencyProperty
|
SnapYProperty
Identifies the SnapY dependency property.
Declaration
public static readonly DependencyProperty SnapYProperty
Field Value
System.Windows.DependencyProperty
|
SupportTouchGesturesProperty
Identifies the SupportTouchGestures dependency property.
Declaration
public static readonly DependencyProperty SupportTouchGesturesProperty
Field Value
System.Windows.DependencyProperty
|
UnselectedEvent
Identifies the Unselected routed event.
Declaration
public static readonly RoutedEvent UnselectedEvent
Field Value
System.Windows.RoutedEvent
|
ViewportProperty
Identifies the Viewport dependency property.
Declaration
public static readonly DependencyProperty ViewportProperty
Field Value
System.Windows.DependencyProperty
|
ZoomChangedEvent
Identifies the ZoomChanged routed event.
Declaration
public static readonly RoutedEvent ZoomChangedEvent
Field Value
System.Windows.RoutedEvent
|
ZoomProperty
Identifies the Zoom dependency property.
Declaration
public static readonly DependencyProperty ZoomProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ActiveTool
Gets or sets the tool which is active when interacting with the diagram elements.
Declaration
public MouseTool ActiveTool { get; set; }
Property Value
MouseTool
|
AllowCopy
Gets or sets a value indicating whether copying is allowed.
Declaration
public bool AllowCopy { get; set; }
Property Value
System.Boolean
|
Implements
AllowCut
Gets or sets a value indicating whether cutting is allowed.
Declaration
public bool AllowCut { get; set; }
Property Value
System.Boolean
|
Implements
AllowDelete
Gets or sets a value indicating whether deleting is allowed.
Declaration
public bool AllowDelete { get; set; }
Property Value
System.Boolean
|
Implements
AllowPaste
Gets or sets a value indicating whether pasting is allowed.
Declaration
public bool AllowPaste { get; set; }
Property Value
System.Boolean
|
Implements
AutoLayout
Gets or sets the auto layout.
Declaration
public bool AutoLayout { get; set; }
Property Value
System.Boolean
|
ConnectionBridge
Gets or sets the connection bridge type.
Declaration
public BridgeType ConnectionBridge { get; set; }
Property Value
BridgeType
|
Implements
ConnectionEditTemplate
Gets or sets the connection edit template.
Declaration
public DataTemplate ConnectionEditTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The connection edit template. |
ConnectionEditTemplateSelector
Gets or sets the connection edit template selector.
Declaration
public DataTemplateSelector ConnectionEditTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
The connection edit template selector. |
ConnectionRoundedCorners
Gets or sets whether the corners of the (polyline) connection are rounded.
Declaration
public bool ConnectionRoundedCorners { get; set; }
Property Value
System.Boolean
|
Implements
Remarks
This property has only an effect when the ConnectionType is set to Polyline.
Connections
Gets the connections.
Declaration
public ConnectionCollection Connections { get; }
Property Value
ConnectionCollection
|
Implements
ConnectionStyle
Gets or sets the connection style.
Declaration
public Style ConnectionStyle { get; set; }
Property Value
System.Windows.Style
The connection style. |
ConnectionStyleSelector
Gets or sets the connection style selector.
Declaration
public StyleSelector ConnectionStyleSelector { get; set; }
Property Value
System.Windows.Controls.StyleSelector
The connection style selector. |
ConnectionTemplate
Gets or sets the connection template.
Declaration
public DataTemplate ConnectionTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The connection template. |
ConnectionTemplateSelector
Gets or sets the connection template selector.
Declaration
public DataTemplateSelector ConnectionTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
The connection template selector. |
ConnectorStyle
Gets or sets the connector style.
Declaration
public Style ConnectorStyle { get; set; }
Property Value
System.Windows.Style
The connector style. |
ContainerGenerator
Gets the container generator.
Declaration
public IContainerGenerator<RadDiagramItem> ContainerGenerator { get; }
Property Value
IContainerGenerator<RadDiagramItem>
|
ContainerShapeStyle
Gets or sets the container shape style.
Declaration
public Style ContainerShapeStyle { get; set; }
Property Value
System.Windows.Style
The container shape style. |
DisplayMemberPath
Gets or sets the display member path.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
System.String
The display member path. |
GraphSource
Gets or sets the graph source.
Declaration
public IGraphSource GraphSource { get; set; }
Property Value
IGraphSource
The graph source. |
Implements
Groups
Gets the group collection.
Declaration
public IEnumerable<IGroup> Groups { get; }
Property Value
System.Collections.Generic.IEnumerable<IGroup>
|
Implements
GroupStyle
Gets or sets the Style for the groups adorner. It is shown when a group is selected.
Declaration
public Style GroupStyle { get; set; }
Property Value
System.Windows.Style
|
IgnoreLinkDirection
Gets or sets a value indicating whether the underlying graph structure is a directional graph.
Declaration
public bool IgnoreLinkDirection { get; set; }
Property Value
System.Boolean
|
Implements
IsAdditionalContentVisible
Gets a value indicating whether the additional content visible.
Declaration
public bool IsAdditionalContentVisible { get; }
Property Value
System.Boolean
|
IsBackgroundSurfaceVisible
Gets or sets whether the background grid is visible.
Declaration
public bool IsBackgroundSurfaceVisible { get; set; }
Property Value
System.Boolean
|
Implements
IsConnectorsManipulationEnabled
Gets or sets a value indicating whether manipulation on the connectors is enabled.
Declaration
public bool IsConnectorsManipulationEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsDraggingEnabled
Gets or sets a value indicating whether dragging is enabled.
Declaration
public bool IsDraggingEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsEditable
Gets or sets a value indicating whether editing is enabled.
Declaration
public bool IsEditable { get; set; }
Property Value
System.Boolean
|
Implements
IsInformationAdornerVisible
Gets or sets whether the information adorner is visible.
Declaration
public bool IsInformationAdornerVisible { get; set; }
Property Value
System.Boolean
|
IsManipulationAdornerVisible
Gets or sets a value indicating whether the manipulation adorner is visible.
Declaration
public bool IsManipulationAdornerVisible { get; set; }
Property Value
System.Boolean
|
Implements
IsMouseCaptured
Gets or sets a value indicating whether the mouse is captured.
Declaration
public bool IsMouseCaptured { get; set; }
Property Value
System.Boolean
|
Implements
IsPanEnabled
Gets or sets a value indicating whether panning is enabled.
Declaration
public bool IsPanEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsResizingEnabled
Gets or sets a value indicating whether resizing is enabled.
Declaration
public bool IsResizingEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsRotationEnabled
Gets or sets a value indicating whether rotation is enabled.
Declaration
public bool IsRotationEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsSnapToGridEnabled
Gets or sets a value indicating whether grid snapping is enabled.
Declaration
public bool IsSnapToGridEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsSnapToItemsEnabled
Gets or sets a value indicating whether snapping of selected item(s) to the other items in the view port is enabled or not.
Declaration
public bool IsSnapToItemsEnabled { get; set; }
Property Value
System.Boolean
|
Implements
IsZoomEnabled
Gets or sets a value indicating whether zooming is enabled.
Declaration
public bool IsZoomEnabled { get; set; }
Property Value
System.Boolean
|
Implements
Items
Gets or sets the diagramming items.
Declaration
public DiagramItemCollection Items { get; }
Property Value
DiagramItemCollection
The items. |
Implements
Metadata
Gets the diagram metadata.
Declaration
public DiagramMetadata Metadata { get; }
Property Value
DiagramMetadata
|
Implements
Position
Gets or sets the position.
Declaration
public Point Position { get; set; }
Property Value
System.Windows.Point
The position. |
Implements
RectSelectionMode
Gets or sets the rectangle selection mode.
Declaration
public RectSelectionMode RectSelectionMode { get; set; }
Property Value
RectSelectionMode
|
Implements
RouteConnections
Declaration
public bool RouteConnections { get; set; }
Property Value
System.Boolean
|
Implements
Remarks
Setting this property has no effect on other connection types.
RoutingService
SelectedIndex
Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.
Declaration
public int SelectedIndex { get; set; }
Property Value
System.Int32
|
SelectedItem
Gets or sets the first item in the current selection or returns null if the selection is empty. This is a dependency property.
Declaration
public object SelectedItem { get; set; }
Property Value
System.Object
|
SelectedItems
Gets the selected items.
Declaration
public IEnumerable<object> SelectedItems { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Object>
|
SelectionBounds
Gets the starting selection bounds.
Declaration
public Rect SelectionBounds { get; }
Property Value
System.Windows.Rect
|
SelectionMode
Gets or sets the selection mode.
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
SelectionMode
|
Implements
SelectionRectangleStyle
Gets or sets the style of the selection rectangle.
Declaration
public Style SelectionRectangleStyle { get; set; }
Property Value
System.Windows.Style
|
ServiceLocator
Gets the service locator.
Declaration
public IServiceLocator ServiceLocator { get; }
Property Value
IServiceLocator
|
Implements
ShapeEditTemplate
Gets or sets the shape edit template.
Declaration
public DataTemplate ShapeEditTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The shape edit template. |
ShapeEditTemplateSelector
Gets or sets the shape edit template selector.
Declaration
public DataTemplateSelector ShapeEditTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
The shape edit template selector. |
Shapes
Gets the shapes.
Declaration
public ShapeCollection Shapes { get; }
Property Value
ShapeCollection
|
Implements
ShapeStyle
Gets or sets the shape style.
Declaration
public Style ShapeStyle { get; set; }
Property Value
System.Windows.Style
The shape style. |
ShapeStyleSelector
Gets or sets the shape style selector.
Declaration
public StyleSelector ShapeStyleSelector { get; set; }
Property Value
System.Windows.Controls.StyleSelector
The shape style selector. |
ShapeTemplate
Gets or sets the shape template.
Declaration
public DataTemplate ShapeTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The shape template. |
ShapeTemplateSelector
Gets or sets the shape template selector.
Declaration
public DataTemplateSelector ShapeTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
The shape template selector. |
SnapX
Gets or sets the horizontal snapping distance.
Declaration
public int SnapX { get; set; }
Property Value
System.Int32
The horizontal snapping distance. |
Implements
SnapY
Gets or sets the vertical snapping distance.
Declaration
public int SnapY { get; set; }
Property Value
System.Int32
The vertical snapping distance. |
Implements
SupportTouchGestures
Gets or sets a value indicating whether the touch gestures are enabled by default.
Declaration
public bool SupportTouchGestures { get; set; }
Property Value
System.Boolean
|
UndoRedoService
Gets the undo redo service.
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
IUndoRedoService
|
Viewport
Gets the bounds of the viewport.
Declaration
public Rect Viewport { get; }
Property Value
System.Windows.Rect
|
Implements
Zoom
Gets or sets the zoom. A zoom value of 1 means 100% and less then 1 means a zoom out. Zoom value will be coerced to be greater than zero, not infinity and not Nan. In addition, Zoom value will be coerced to be greater or equal than MinimumZoom and smaller or equal than MaximumZoom.
Declaration
public double Zoom { get; set; }
Property Value
System.Double
|
Implements
Methods
AddConnection(Point, Point, Boolean)
Adds a floating connection.
Declaration
public IConnection AddConnection(Point startPoint, Point endPoint, bool isUndoable = false)
Parameters
System.Windows.Point
startPoint
The source (starting) point of the connection. |
System.Windows.Point
endPoint
The target (end) point of the connection. |
System.Boolean
isUndoable
True, if this action is undoable. |
Returns
IConnection
Returns the added connection. |
Implements
AddConnection(IConnection, Boolean)
Adds a new connection to the diagram.
Declaration
public IConnection AddConnection(IConnection connection, bool isUndoable = false)
Parameters
IConnection
connection
The connection to be added. |
System.Boolean
isUndoable
If set to |
Returns
IConnection
|
Implements
AddConnection(IShape, IShape, Boolean)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, bool isUndoable = false)
Parameters
IShape
source
The source or start shape of the connection. |
IShape
target
The target or end shape of the connection. |
System.Boolean
isUndoable
If set to |
Returns
IConnection
|
Implements
AddConnection(IShape, IShape, String, Boolean)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, string connectorsPosition, bool isUndoable = false)
Parameters
IShape
source
The source or start shape of the connection. |
IShape
target
The target or end shape of the connection. |
System.String
connectorsPosition
The connectors position. |
System.Boolean
isUndoable
If set to |
Returns
IConnection
|
AddConnection(IShape, IShape, String, String, Boolean)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, string sourceConnector, string targetConnector, bool isUndoable = false)
Parameters
IShape
source
The source. |
IShape
target
The target. |
System.String
sourceConnector
The source connector position. |
System.String
targetConnector
The target connector position. |
System.Boolean
isUndoable
If set to |
Returns
IConnection
|
AddGlidingConnection(IShape, IShape, Boolean)
Adds a new gliding connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddGlidingConnection(IShape source, IShape target, bool isUndoable = false)
Parameters
IShape
source
The source or start shape of the connection. |
IShape
target
The target or end shape of the connection. |
System.Boolean
isUndoable
If set to |
Returns
IConnection
|
Remarks
If the shape already contains connections on the default connectors this will raise an exception since gliding connections are mutually exclusive with normal connections. Remove first the existing connections on the source and target shapes before calling this method.
AddImageShape(Stream, Point)
Adds a shape with image content.
Declaration
public void AddImageShape(Stream source, Point position)
Parameters
System.IO.Stream
source
|
System.Windows.Point
position
|
AddShape(Object, Geometry, Nullable<Point>, Boolean)
Adds a new shape to the diagram.
Declaration
public IShape AddShape(object content, Geometry geometry = null, Point? position = default(Point? ), bool isUndoable = false)
Parameters
System.Object
content
The content of the shape. |
System.Windows.Media.Geometry
geometry
The geometry. |
System.Nullable<System.Windows.Point>
position
The position. |
System.Boolean
isUndoable
If set to |
Returns
IShape
The added shape. |
Remarks
The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.
AddShape(Object, ArrowShapeType, Nullable<Point>, Boolean)
Adds a new shape to the diagram.
Declaration
public IShape AddShape(object content, ArrowShapeType type, Point? position = default(Point? ), bool isUndoable = false)
Parameters
System.Object
content
The content of the shape. |
ArrowShapeType
type
The common shape type. |
System.Nullable<System.Windows.Point>
position
The position. |
System.Boolean
isUndoable
If set to |
Returns
IShape
The added shape. |
Remarks
The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.
AddShape(Object, CommonShapeType, Nullable<Point>, Boolean)
Adds a new shape to the diagram.
Declaration
public IShape AddShape(object content, CommonShapeType type, Point? position = default(Point? ), bool isUndoable = false)
Parameters
System.Object
content
The content of the shape. |
CommonShapeType
type
The common shape type. |
System.Nullable<System.Windows.Point>
position
The position. |
System.Boolean
isUndoable
If set to |
Returns
IShape
The added shape. |
Remarks
The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.
AddShape(Object, FlowChartShapeType, Nullable<Point>, Boolean)
Adds a new shape to the diagram.
Declaration
public IShape AddShape(object content, FlowChartShapeType type, Point? position = default(Point? ), bool isUndoable = false)
Parameters
System.Object
content
The content of the shape. |
FlowChartShapeType
type
The common shape type. |
System.Nullable<System.Windows.Point>
position
The position. |
System.Boolean
isUndoable
If set to |
Returns
IShape
The added shape. |
Remarks
The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.
AddShape(IShape, Nullable<Point>, Boolean)
Adds the given shape to the diagram.
Declaration
public IShape AddShape(IShape shape, Point? position = default(Point? ), bool isUndoable = false)
Parameters
IShape
shape
The shape to add. |
System.Nullable<System.Windows.Point>
position
The position at which the shape will be added on the canvas. |
System.Boolean
isUndoable
If set to |
Returns
IShape
|
Implements
Align(Alignment, IEnumerable<IShape>)
Aligns the given shapes.
Declaration
public void Align(Alignment alignment, IEnumerable<IShape> shapes)
Parameters
Alignment
alignment
|
System.Collections.Generic.IEnumerable<IShape>
shapes
|
AutoFit()
Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas.
Declaration
public void AutoFit()
AutoFit(Thickness, Boolean)
Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas. If there are no items or the visible area is with empty size or the margin is greater than the visible area no action will be performed.
Declaration
public void AutoFit(Thickness margin, bool useAnimation = true)
Parameters
System.Windows.Thickness
margin
The margin to be used as whitespace border around the diagram items. |
System.Boolean
useAnimation
Determines whether animations should be used. |
AutoFitAsync(Thickness, Boolean)
Zoom and pans the diagram asynchronously in such a way that all items will fit into the currently visible area of the canvas. If there are no items or the visible area is with empty size or the margin is greater than the visible area no action will be performed.
Declaration
public void AutoFitAsync(Thickness margin, bool useAnimation = true)
Parameters
System.Windows.Thickness
margin
The margin to be used as whitespace border around the diagram items. |
System.Boolean
useAnimation
Determines whether animations should be used. |
BeginBatchTransformation()
Begins a batch transformation and signals the undo-redo stack that a batch of transformation should be considered as one, i.e. a composite change.
Declaration
public DiagramLayoutState BeginBatchTransformation()
Returns
DiagramLayoutState
|
Implements
See Also
BringForward(IEnumerable<IDiagramItem>, Boolean)
Brings the items forward.
Declaration
public void BringForward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
|
System.Boolean
isUndoable
|
BringIntoView(Object, Double, Boolean)
Brings the provided item to the center of the view port with the requested zoom.
Declaration
public bool BringIntoView(object item, double zoomLevel = 1, bool useAnimation = true)
Parameters
System.Object
item
The shape to bring to the center of the view port. If the item is null or has with invalid position/size (NaN or infinity) the operation will not be executed. |
System.Double
zoomLevel
The zoom level. It will be coerced according to Zoom property restriction. |
System.Boolean
useAnimation
Determines whether an animation will be used. |
Returns
System.Boolean
Whether the operation has bee executed successfully or not. |
BringIntoView(Point, Double, Boolean)
Brings the provided point into the top left corner of the view port with the requested zoom.
Declaration
public bool BringIntoView(Point position, double zoomLevel = 1, bool useAnimation = true)
Parameters
System.Windows.Point
position
The point to bring to the top left view port corner. If the position is invalid (NaN or infinity) the operation will not be executed. |
System.Double
zoomLevel
The zoom level. It will be coerced according to Zoom property restriction. |
System.Boolean
useAnimation
Determines whether an animation will be used. |
Returns
System.Boolean
Whether the operation has bee executed successfully or not. |
BringIntoView(Rect, Boolean)
Makes the requested rectangle the new view port. After the rectangle is centered in the view port a zoom operation stretches the rectangle to occupy the whole view port. The zoom is coerced according to Zoom property restriction.
Declaration
public bool BringIntoView(Rect newViewPort, bool useAnimation = true)
Parameters
System.Windows.Rect
newViewPort
The rect to bring into view. If the rectangle is empty the operation will not be executed. |
System.Boolean
useAnimation
Determines whether an animation will be used. |
Returns
System.Boolean
Whether the operation has bee executed successfully or not. |
BringToFront(IEnumerable<IDiagramItem>, Boolean)
Brings the items to front.
Declaration
public void BringToFront(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
|
System.Boolean
isUndoable
|
CleanContainerForItemOverride(FrameworkElement, Object)
Cleans the container for item override.
Declaration
protected virtual void CleanContainerForItemOverride(FrameworkElement container, object item)
Parameters
System.Windows.FrameworkElement
container
The container. |
System.Object
item
The item. |
Clear()
Clears the diagram and resets the document.
Declaration
public void Clear()
Remarks
The diagram is not saved prior to this reset. You need to handle in the application the eventual necessity to save (or request the user) the diagram before this.
CommitBatchTransformation(DiagramLayoutState, DiagramLayoutState, Boolean, Boolean, LayoutType, Object)
Commits the batch transformation and ends the composite undo redo change.
Declaration
public void CommitBatchTransformation(DiagramLayoutState initialState, DiagramLayoutState finalState, bool animate = false, bool execute = true, LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
DiagramLayoutState
initialState
The initial state. |
DiagramLayoutState
finalState
The final state. |
System.Boolean
animate
If set to |
System.Boolean
execute
Whether the undo-redo unit is only added or also executed. |
LayoutType
type
The layout type that has been applied. |
System.Object
settings
The layout specific settings used for the layout. |
Implements
Remarks
The animation tremendously decreases the performance.
See Also
Copy()
Copies the currently selected items of the diagram.
Declaration
public void Copy()
Cut()
Cuts the currently selected items of the diagram.
Declaration
public void Cut()
Delete()
Deletes the currently selected items of the diagram.
Declaration
public virtual void Delete()
DeselectAll()
Deselects all shapes in the diagram.
Declaration
public void DeselectAll()
Deserialize(SerializationInfo)
Deserializes the specified info.
Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
SerializationInfo
info
The info. |
Implements
Export(String)
Exports the Diagram into png or bmp.
Declaration
public void Export(string exportFormat)
Parameters
System.String
exportFormat
|
ExportToImage(Stream, BitmapEncoder, Nullable<Rect>, Size, Brush, Thickness, Double)
Exports an image of the given element to stream using the specified bitmap encoder.
Declaration
public void ExportToImage(Stream stream, BitmapEncoder encoder = null, Rect? enclosingBounds = default(Rect? ), Size returnImageSize = null, Brush backgroundBrush = null, Thickness margin = null, double dpi = 96)
Parameters
System.IO.Stream
stream
The stream to write the image to. |
System.Windows.Media.Imaging.BitmapEncoder
encoder
The bitmap encoder. If none is specified the System.Windows.Media.Imaging.PngBitmapEncoder will be used. |
System.Nullable<System.Windows.Rect>
enclosingBounds
The bound of the diagram which should be exported. |
System.Windows.Size
returnImageSize
The size of the exported image. |
System.Windows.Media.Brush
backgroundBrush
The background brush to use. |
System.Windows.Thickness
margin
The margin around the exported image. |
System.Double
dpi
The quality of the image. |
FitTo(Rect, Boolean)
Makes the requested rectangle the new view port. After the rectangle is placed in the top left corner of the view port a zoom operation stretches the rectangle to occupy the whole view port. The zoom is coerced according to Zoom property restriction.
Declaration
[Obsolete("This method will be removed. Use BringIntoView instead.", false)]
public bool FitTo(Rect newViewport, bool useAnimation = true)
Parameters
System.Windows.Rect
newViewport
The new viewport. If the viewport is invalid (NaN or infinity for position or size) the operation will not be executed. The desired zoom level after the bring operation is determined by the ratio of new viewport width to current viewport width. |
System.Boolean
useAnimation
Determines whether an animation will be used. |
Returns
System.Boolean
Whether the operation has bee executed successfully or not. |
GetConnectionContainerForItemOverride(Object)
Gets the connection container for item override.
Declaration
protected virtual IConnection GetConnectionContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IConnection
|
GetShapeContainerForItemOverride(Object)
Gets the shape container for item override.
Declaration
protected virtual IShape GetShapeContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IShape
|
GetShapeContainerForItemOverride(IContainerItem)
Gets the 'container shape' container for item override.
Declaration
protected virtual IContainerShape GetShapeContainerForItemOverride(IContainerItem item)
Parameters
IContainerItem
item
The item. |
Returns
IContainerShape
|
GetTextShapeContainerForItemOverride(Object)
Gets the text shape container for item override.
Declaration
protected virtual IShape GetTextShapeContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IShape
|
Group(String, Boolean, IGroupable[])
Groups the specified items.
Declaration
public IGroup Group(string groupName = null, bool isUndoable = false, params IGroupable[] items)
Parameters
System.String
groupName
Name of the new group. |
System.Boolean
isUndoable
If set to |
IGroupable[]
items
The groups items to ungroup. |
Returns
IGroup
|
Implements
Group(String, IGroupable[])
Groups the specified items.
Declaration
public IGroup Group(string groupName = null, params IGroupable[] items)
Parameters
System.String
groupName
Name of the new group. |
IGroupable[]
items
The groups items to ungroup. |
Returns
IGroup
|
Implements
IsInViewport(IDiagramItem)
Checks if the diagram item is in the viewport.
Declaration
public bool IsInViewport(IDiagramItem item)
Parameters
IDiagramItem
item
|
Returns
System.Boolean
|
IsItemItsOwnConnectionContainerOverride(Object)
Determines whether [is item its own connection container override] [the specified item].
Declaration
protected virtual bool IsItemItsOwnConnectionContainerOverride(object item)
Parameters
System.Object
item
The item. |
Returns
System.Boolean
|
IsItemItsOwnShapeContainerOverride(Object)
Determines whether the item is a container on its own.
Declaration
protected virtual bool IsItemItsOwnShapeContainerOverride(object item)
Parameters
System.Object
item
The item. |
Returns
System.Boolean
|
Layout(LayoutType, Object)
Organizes the diagram using the specified layout.
Declaration
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
LayoutType
type
The layout type to apply. |
System.Object
settings
The settings specific to the layout type. |
See Also
LayoutAsync(LayoutType, Object)
Organizes the diagram using the specified layout asynchronously.
Declaration
public void LayoutAsync(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
LayoutType
type
The layout type to apply. |
System.Object
settings
The settings specific to the layout type. |
See Also
Load(String)
Loads the specified serialization string.
Declaration
public void Load(string serializationValue)
Parameters
System.String
serializationValue
The serialization value. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnCanExecuteDeleteCommandOverride(Object, CanExecuteRoutedEventArgs)
Called on can execute delete command.
Declaration
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Input.CanExecuteRoutedEventArgs
e
|
OnCreateAutomationPeer()
Creates a Telerik.Windows.Controls.Diagrams.AutomationPeers.RadDiagramAutomationPeer peer associated with this object.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
An instance of the Telerik.Windows.Controls.Diagrams.AutomationPeers.RadDiagramAutomationPeer. |
OnDeleteCommandExecutedOverride(Object, ExecutedRoutedEventArgs)
Called when delete command is executed.
Declaration
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Input.ExecutedRoutedEventArgs
e
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnIsConnectorsManipulationEnabledChanged(Boolean, Boolean)
Called on is connectors manipulation enabled property changed.
Declaration
protected virtual void OnIsConnectorsManipulationEnabledChanged(bool oldValue, bool newValue)
Parameters
System.Boolean
oldValue
The old value. |
System.Boolean
newValue
The new value. |
OnKeyDownHandled(Object, KeyEventArgs)
Declaration
protected virtual void OnKeyDownHandled(object sender, KeyEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Input.KeyEventArgs
e
|
OnKeyUpHandled(Object, KeyEventArgs)
Declaration
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Input.KeyEventArgs
e
|
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonDown event occurs.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
The data for the event. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonUp event occurs.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
The data for the event. |
OnMouseMove(MouseEventArgs)
Called before the System.Windows.UIElement.MouseMove event occurs.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The data for the event. |
OnMouseWheel(MouseWheelEventArgs)
Called when the mouse wheel is used to zoom the diagram.
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
System.Windows.Input.MouseWheelEventArgs
e
The System.Windows.Input.MouseWheelEventArgs instance containing the event data. |
OnPositionChanged(Point, Point)
Called when the Position property changes.
Declaration
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
System.Windows.Point
oldPosition
|
System.Windows.Point
newPosition
|
OnRouteConnectionsChanged(Boolean, Boolean)
Called on route connections property change.
Declaration
protected virtual void OnRouteConnectionsChanged(bool newValue, bool oldValue)
Parameters
System.Boolean
newValue
The new value. |
System.Boolean
oldValue
The old value. |
OnZoomChanged(Double, Double)
Called when the Zoomproperty changes.
Declaration
protected virtual void OnZoomChanged(double oldZoom, double newZoom)
Parameters
System.Double
oldZoom
|
System.Double
newZoom
|
Paste()
Pastes the content of the clipboard onto the diagram.
Declaration
public virtual void Paste()
PrepareConnectionContainerForItemOverride(FrameworkElement, Object)
Prepares the container for item override.
Declaration
protected virtual void PrepareConnectionContainerForItemOverride(FrameworkElement container, object item)
Parameters
System.Windows.FrameworkElement
container
The container. |
System.Object
item
The item. |
PrepareShapeContainerForItemOverride(FrameworkElement, Object)
Prepares the container for item override.
Declaration
protected virtual void PrepareShapeContainerForItemOverride(FrameworkElement container, object item)
Parameters
System.Windows.FrameworkElement
container
The container. |
System.Object
item
The item. |
Print(RadDiagramPrintSettings)
Print the diagram.
Declaration
public bool Print(RadDiagramPrintSettings printSettings = null)
Parameters
RadDiagramPrintSettings
printSettings
The print settings. |
Returns
System.Boolean
True when the printing is successful, False otherwise. |
PublishDiagramEvent(DiagramEvent, Object)
Raises generic event.
Declaration
protected virtual bool PublishDiagramEvent(DiagramEvent diagramEvent, object args)
Parameters
DiagramEvent
diagramEvent
|
System.Object
args
|
Returns
System.Boolean
|
Redo()
Performs redo on the last undone action.
Declaration
public void Redo()
RemoveConnection(IConnection, Boolean)
Removes the connection.
Declaration
public void RemoveConnection(IConnection connection, bool isUndoable = false)
Parameters
IConnection
connection
The connection. |
System.Boolean
isUndoable
If set to |
Implements
RemoveShape(IShape, Boolean)
Removes the shape.
Declaration
public void RemoveShape(IShape shape, bool isUndoable = false)
Parameters
IShape
shape
The shape. |
System.Boolean
isUndoable
If set to |
Implements
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
ResetViewport(Boolean)
Brings the (0, 0) point into the top left corner of the view port with zoom equal to 1.
Declaration
public void ResetViewport(bool useAnimation = true)
Parameters
System.Boolean
useAnimation
Determines whether an animation will be used. |
Save()
Saves the diagram.
Declaration
public string Save()
Returns
System.String
Returns the serialization string. |
Scroll(Double, Double)
Scrolls with specified horizontal and vertical offset.
Declaration
public void Scroll(double horizontalOffset, double verticalOffset)
Parameters
System.Double
horizontalOffset
The horizontal offset. |
System.Double
verticalOffset
The vertical offset. |
SelectAll()
Selects all shapes in the diagram.
Declaration
public void SelectAll()
SendBackward(IEnumerable<IDiagramItem>, Boolean)
Sends the items backward.
Declaration
public void SendBackward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
|
System.Boolean
isUndoable
|
SendToBack(IEnumerable<IDiagramItem>, Boolean)
Sends the items to back.
Declaration
public void SendToBack(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
|
System.Boolean
isUndoable
|
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
SerializationInfo
|
Implements
Snap(IEnumerable<IShape>)
Snaps the specified shapes.
Declaration
public void Snap(IEnumerable<IShape> shapes)
Parameters
System.Collections.Generic.IEnumerable<IShape>
shapes
|
Undo()
Performs undo on the last action.
Declaration
public void Undo()
Ungroup(Boolean, IGroup[])
Ungroups the specified items.
Declaration
public void Ungroup(bool isUndoable, params IGroup[] groups)
Parameters
System.Boolean
isUndoable
If set to |
IGroup[]
groups
The groups items to ungroup. |
Implements
Ungroup(IGroup[])
Ungroups the specified items.
Declaration
public void Ungroup(params IGroup[] groups)
Parameters
IGroup[]
groups
The groups items to ungroup. |
Implements
UpdateRectSelection(Rect)
Updates the rectangle selection.
Declaration
protected void UpdateRectSelection(Rect bounds)
Parameters
System.Windows.Rect
bounds
|
ZoomIn(Nullable<Double>, Nullable<Point>, Boolean)
Zooms in the diagram. Simulates zooming with the mouse. Performs incremental zoom taking into account previous zoom operations.
Declaration
public void ZoomIn(double? factor = default(double? ), Point? targetPoint = default(Point? ), bool useAnimation = true)
Parameters
System.Nullable<System.Double>
factor
The value by which to change Zoom property. When factor is null, smaller or equal to zero the ZoomFactor value will be used. |
System.Nullable<System.Windows.Point>
targetPoint
The center of the zoom. The point should be provided in viewport coordinates. |
System.Boolean
useAnimation
Determines whether animation should be used. |
ZoomOut(Nullable<Double>, Nullable<Point>, Boolean)
Zooms out the diagram. Simulates zooming with the mouse. Performs incremental zoom taking into account previous zoom operations.
Declaration
public void ZoomOut(double? factor = default(double? ), Point? targetPoint = default(Point? ), bool useAnimation = true)
Parameters
System.Nullable<System.Double>
factor
The value by which to change Zoom property. When factor is null, smaller or equal to zero the ZoomFactor value will be used. |
System.Nullable<System.Windows.Point>
targetPoint
The center of the zoom. The point should be provided in viewport coordinates. |
System.Boolean
useAnimation
Determines whether animation should be used. |
Events
AdditionalContentActivated
Occurs when AdditionContent is activated.
Declaration
public event EventHandler<AdditionalContentActivatedEventArgs> AdditionalContentActivated
Event Type
System.EventHandler<AdditionalContentActivatedEventArgs>
|
CommandExecuted
Occurs when a command is executed.
Declaration
public event EventHandler<CommandRoutedEventArgs> CommandExecuted
Event Type
System.EventHandler<CommandRoutedEventArgs>
|
ConnectionDeserialized
Occurs when a connection has been deserialized.
Declaration
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionDeserialized
Event Type
System.EventHandler<ConnectionSerializationRoutedEventArgs>
|
Remarks
This event allows you to recover additional, application specific data from the serialization.
See Also
ConnectionManipulationCompleted
Occurs when the connection manipulation has completed.
Declaration
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationCompleted
Event Type
System.EventHandler<ManipulationRoutedEventArgs>
|
ConnectionManipulationStarted
Occurs before the connection manipulation has started.
Declaration
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationStarted
Event Type
System.EventHandler<ManipulationRoutedEventArgs>
|
ConnectionSerialized
Occurs when a connection has been serialized.
Declaration
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionSerialized
Event Type
System.EventHandler<ConnectionSerializationRoutedEventArgs>
|
Remarks
This event allows you to add additional, application specific data to the serialization.
See Also
ConnectorActivationChanged
Occurs after a connector activation or deactivation.
Declaration
public event EventHandler<ConnectorActivationChangedEventArgs> ConnectorActivationChanged
Event Type
System.EventHandler<ConnectorActivationChangedEventArgs>
|
Deserialized
Occurs when the diagram has been deserialized.
Declaration
public event RadRoutedEventHandler Deserialized
Event Type
RadRoutedEventHandler
|
DiagramLayoutComplete
Occurs when the diagram layout has completed.
Declaration
public event RoutedEventHandler DiagramLayoutComplete
Event Type
System.Windows.RoutedEventHandler
|
Drag
Occurs when an item is dragged.
Declaration
public event EventHandler<DragRoutedEventArgs> Drag
Event Type
System.EventHandler<DragRoutedEventArgs>
|
GraphSourceChanged
Occurs when the graph source has changed.
Declaration
public event EventHandler GraphSourceChanged
Event Type
System.EventHandler
|
GraphSourceChanging
Occurs when the graph source begins changing.
Declaration
public event EventHandler GraphSourceChanging
Event Type
System.EventHandler
|
GroupsChanged
Occurs when count of the groups change.
Declaration
public event EventHandler<DiagramItemsChangedEventArgs> GroupsChanged
Event Type
System.EventHandler<DiagramItemsChangedEventArgs>
|
ItemsChanged
Occurs when count of the items change.
Declaration
public event EventHandler<DiagramItemsChangedEventArgs> ItemsChanged
Event Type
System.EventHandler<DiagramItemsChangedEventArgs>
|
ItemsChanging
Occurs while the diagram items are changing.
Declaration
public event EventHandler<DiagramItemsChangingEventArgs> ItemsChanging
Event Type
System.EventHandler<DiagramItemsChangingEventArgs>
|
MetadataDeserialized
Occurs when the diagram's metadata has been deserialized.
Declaration
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataDeserialized
Event Type
System.EventHandler<DiagramSerializationRoutedEventArgs>
|
Remarks
The event allows you to deserialize the additional data added, if any, using the MetadataDeserialized event handler.
MetadataSerialized
Occurs when the diagram's metadata has been serialized.
Declaration
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataSerialized
Event Type
System.EventHandler<DiagramSerializationRoutedEventArgs>
|
Remarks
This event allows you to add additional, application specific data to the serialization.
See Also
Pan
Occurs after the diagram is panned.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> Pan
Event Type
System.EventHandler<PositionChangedRoutedEventArgs>
|
PositionChanged
Occurs when the position has changed.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> PositionChanged
Event Type
System.EventHandler<PositionChangedRoutedEventArgs>
|
PreviewAdditionalContentActivated
Occurs when AdditionContent is about to be activated.
Declaration
public event EventHandler<AdditionalContentActivatedEventArgs> PreviewAdditionalContentActivated
Event Type
System.EventHandler<AdditionalContentActivatedEventArgs>
|
PreviewDrag
Occurs before an item is dragged.
Declaration
public event EventHandler<DragRoutedEventArgs> PreviewDrag
Event Type
System.EventHandler<DragRoutedEventArgs>
|
PreviewPan
Occurs before the diagram is panned.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> PreviewPan
Event Type
System.EventHandler<PositionChangedRoutedEventArgs>
|
PreviewResize
Occurs before an item is resized.
Declaration
public event EventHandler<ResizeRoutedEventArgs> PreviewResize
Event Type
System.EventHandler<ResizeRoutedEventArgs>
|
PreviewRotate
Occurs before an item is rotated.
Declaration
public event EventHandler<RadRoutedEventArgs> PreviewRotate
Event Type
System.EventHandler<RadRoutedEventArgs>
|
PreviewSelectionChanged
Occurs when the selection of the diagram starts changing.
Declaration
public event SelectionChangedEventHandler PreviewSelectionChanged
Event Type
System.Windows.Controls.SelectionChangedEventHandler
|
PreviewZoom
Occurs before the zoom has been changed.
Declaration
public event EventHandler<DiagramZoomEventArgs> PreviewZoom
Event Type
System.EventHandler<DiagramZoomEventArgs>
|
Resize
Occurs when an item is resized.
Declaration
public event EventHandler<ResizeRoutedEventArgs> Resize
Event Type
System.EventHandler<ResizeRoutedEventArgs>
|
Rotate
Occurs when an item is rotated.
Declaration
public event EventHandler<RotateRoutedEventArgs> Rotate
Event Type
System.EventHandler<RotateRoutedEventArgs>
|
SelectionBoundsChanged
Occurs when the selection bounds of the diagram changes.
Declaration
public event EventHandler SelectionBoundsChanged
Event Type
System.EventHandler
|
SelectionChanged
Occurs when the selection of the diagram changes.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
System.Windows.Controls.SelectionChangedEventHandler
|
Serialized
Occurs after the diagram has been serialized.
Declaration
public event RadRoutedEventHandler Serialized
Event Type
RadRoutedEventHandler
|
ShapeClicked
Occurs when shape is clicked.
Declaration
public event EventHandler<ShapeRoutedEventArgs> ShapeClicked
Event Type
System.EventHandler<ShapeRoutedEventArgs>
|
ShapeDeserialized
Occurs when a shape has been deserialized.
Declaration
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeDeserialized
Event Type
System.EventHandler<ShapeSerializationRoutedEventArgs>
|
Remarks
The event allows you to deserialize the additional data added, if any, using the ShapeSerialized event handler.
ShapeDoubleClicked
Occurs when a shape has been double-clicked.
Declaration
public event EventHandler<ShapeRoutedEventArgs> ShapeDoubleClicked
Event Type
System.EventHandler<ShapeRoutedEventArgs>
|
ShapeSerialized
Occurs when a shape has been serialized.
Declaration
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeSerialized
Event Type
System.EventHandler<ShapeSerializationRoutedEventArgs>
|
Remarks
This event allows you to add additional, application specific data to the serialization.
See Also
ViewportChanged
Occurs when the viewport has changed.
Declaration
public event EventHandler<PropertyEventArgs<Rect>> ViewportChanged
Event Type
System.EventHandler<PropertyEventArgs<System.Windows.Rect>>
|
VisualChildrenChanged
Occurs when [children changed].
Declaration
public event EventHandler VisualChildrenChanged
Event Type
System.EventHandler
|
ZoomChanged
Occurs when the zoom has been changed.
Declaration
public event EventHandler<RadRoutedPropertyChangedEventArgs<double>> ZoomChanged
Event Type
System.EventHandler<RadRoutedPropertyChangedEventArgs<System.Double>>
|
Explicit Interface Implementations
IGraph.get_Cursor()
Declaration
Cursor IGraph.get_Cursor()
Returns
System.Windows.Input.Cursor
|
Implements
IGraph.IsVirtualizing
Declaration
bool IGraph.IsVirtualizing { get; }
Returns
System.Boolean
|
Implements
IGraph.set_Cursor(Cursor)
Declaration
void IGraph.set_Cursor(Cursor value)
Parameters
System.Windows.Input.Cursor
value
|
Implements
IGraphInternal.ActiveConnector
IGraphInternal.GetAdornerPartResolver()
Declaration
IAdornerPartResolver IGraphInternal.GetAdornerPartResolver()
Returns
IAdornerPartResolver
|
Implements
IGraphInternal.GetContainerFromItem(Object)
Declaration
IDiagramItem IGraphInternal.GetContainerFromItem(object item)
Parameters
System.Object
item
|
Returns
IDiagramItem
|
Implements
IGraphInternal.GetItemFromContainer(IDiagramItem)
Declaration
object IGraphInternal.GetItemFromContainer(IDiagramItem container)
Parameters
IDiagramItem
container
|
Returns
System.Object
|
Implements
IGraphInternal.GetSerializationInfo()
Declaration
SerializationInfo IGraphInternal.GetSerializationInfo()
Returns
SerializationInfo
|
Implements
IGraphInternal.IntersectingConnections(IConnection, Nullable<Rect>)
Returns all intersecting connections that are below or above the given one.
Declaration
IList<IConnection> IGraphInternal.IntersectingConnections(IConnection connection, Rect? bounds)
Parameters
IConnection
connection
The connection. |
System.Nullable<System.Windows.Rect>
bounds
The bounds. If null the connection's Bounds are used. |
Returns
System.Collections.Generic.IList<IConnection>
|
Implements
IGraphInternal.IsInternalItemsChange
Declaration
bool IGraphInternal.IsInternalItemsChange { get; set; }
Returns
System.Boolean
|
Implements
IGraphInternal.PublishDiagramEvent(DiagramEvent, Object)
Declaration
bool IGraphInternal.PublishDiagramEvent(DiagramEvent diagramEvent, object args)
Parameters
DiagramEvent
diagramEvent
|
System.Object
args
|
Returns
System.Boolean
|
Implements
IGraphInternal.RaiseItemsChangingEvent(NotifyCollectionChangedAction, IEnumerable, IEnumerable)
Declaration
void IGraphInternal.RaiseItemsChangingEvent(NotifyCollectionChangedAction action, IEnumerable newItems, IEnumerable oldItems)
Parameters
System.Collections.Specialized.NotifyCollectionChangedAction
action
|
System.Collections.IEnumerable
newItems
|
System.Collections.IEnumerable
oldItems
|
Implements
IGraphInternal.Segmentation
Declaration
ISegmentationService IGraphInternal.Segmentation { get; }
Returns
ISegmentationService
|
Implements
IGraphInternal.TransformPoint(Point)
Declaration
Point IGraphInternal.TransformPoint(Point point)
Parameters
System.Windows.Point
point
|
Returns
System.Windows.Point
|
Implements
IGraphInternal.UpdateAdorners()
IGraphInternal.UpdateRectSelection(Rect)
Declaration
void IGraphInternal.UpdateRectSelection(Rect bounds)
Parameters
System.Windows.Rect
bounds
|
Implements
IGraphInternal.UpdateScrollbars()
ISupportContainerGenerator<RadDiagramItem>.CleanContainerForItemOverride(RadDiagramItem, Object)
Cleans the container for item override.
Declaration
void ISupportContainerGenerator<RadDiagramItem>.CleanContainerForItemOverride(RadDiagramItem container, object item)
Parameters
RadDiagramItem
container
The container. |
System.Object
item
The item. |
Implements
ISupportContainerGenerator<RadDiagramItem>.GetConnectionContainerForItemOverride(Object)
Gets the connection container for item override.
Declaration
IConnection ISupportContainerGenerator<RadDiagramItem>.GetConnectionContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IConnection
|
Implements
ISupportContainerGenerator<RadDiagramItem>.GetShapeContainerForItemOverride(Object)
Gets the shape container for item override.
Declaration
IShape ISupportContainerGenerator<RadDiagramItem>.GetShapeContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IShape
|
Implements
ISupportContainerGenerator<RadDiagramItem>.GetShapeContainerForItemOverride(IContainerItem)
Declaration
IContainerShape ISupportContainerGenerator<RadDiagramItem>.GetShapeContainerForItemOverride(IContainerItem item)
Parameters
IContainerItem
item
|
Returns
IContainerShape
|
Implements
ISupportContainerGenerator<RadDiagramItem>.GetTextShapeContainerForItemOverride(Object)
Gets the text shape container for item override.
Declaration
IShape ISupportContainerGenerator<RadDiagramItem>.GetTextShapeContainerForItemOverride(object item)
Parameters
System.Object
item
The item. |
Returns
IShape
|
Implements
ISupportContainerGenerator<RadDiagramItem>.IsItemItsOwnConnectionContainerOverride(Object)
Determines whether [is item its own connection container override] [the specified item].
Declaration
bool ISupportContainerGenerator<RadDiagramItem>.IsItemItsOwnConnectionContainerOverride(object item)
Parameters
System.Object
item
The item. |
Returns
System.Boolean
|
Implements
ISupportContainerGenerator<RadDiagramItem>.IsItemItsOwnShapeContainerOverride(Object)
Determines whether [is item its own shape container override] [the specified item].
Declaration
bool ISupportContainerGenerator<RadDiagramItem>.IsItemItsOwnShapeContainerOverride(object item)
Parameters
System.Object
item
The item. |
Returns
System.Boolean
|
Implements
ISupportContainerGenerator<RadDiagramItem>.PrepareConnectionContainerForItemOverride(RadDiagramItem, Object)
Prepares the container for item override.
Declaration
void ISupportContainerGenerator<RadDiagramItem>.PrepareConnectionContainerForItemOverride(RadDiagramItem container, object item)
Parameters
RadDiagramItem
container
The container. |
System.Object
item
The item. |
Implements
ISupportContainerGenerator<RadDiagramItem>.PrepareShapeContainerForItemOverride(RadDiagramItem, Object)
Prepares the container for item override.
Declaration
void ISupportContainerGenerator<RadDiagramItem>.PrepareShapeContainerForItemOverride(RadDiagramItem container, object item)
Parameters
RadDiagramItem
container
The container. |
System.Object
item
The item. |
Implements
ISupportContainerGenerator<RadDiagramItem>.UpdateDataContext(RadDiagramItem, Object)
Updates the dataContext of the container.
Declaration
void ISupportContainerGenerator<RadDiagramItem>.UpdateDataContext(RadDiagramItem container, object item)
Parameters
RadDiagramItem
container
The container. |
System.Object
item
The item. |