Class RadDiagramElement
Represents a diagram element that provides visual diagramming functionality with support for shapes, connections, and interactive features.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class RadDiagramElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ISupportContainerGenerator<RadDiagramItem>, IGraphInternal, IGraph, ISerializable, ISupportManipulation
Constructors
RadDiagramElement()
Fields
ActiveToolProperty
Identifies the ActiveTool dependency property.
Declaration
public static readonly RadProperty ActiveToolProperty
Field Value
|
RadProperty
|
AllowCopyProperty
Identifies the AllowCopy dependency property.
Declaration
public static readonly RadProperty AllowCopyProperty
Field Value
|
RadProperty
|
AllowCutProperty
Identifies the AllowCut dependency property.
Declaration
public static readonly RadProperty AllowCutProperty
Field Value
|
RadProperty
|
AllowDeleteProperty
Identifies the AllowDelete dependency property.
Declaration
public static readonly RadProperty AllowDeleteProperty
Field Value
|
RadProperty
|
AllowPasteProperty
Identifies the AllowPaste dependency property.
Declaration
public static readonly RadProperty AllowPasteProperty
Field Value
|
RadProperty
|
AutoLayoutProperty
Identifies the AutoLayout dependency property.
Declaration
public static readonly RadProperty AutoLayoutProperty
Field Value
|
RadProperty
|
ConnectionBridgeProperty
Identifies the Position dependency property.
Declaration
public static readonly RadProperty ConnectionBridgeProperty
Field Value
|
RadProperty
|
ConnectionClickedEvent
Identifies the ConnectionClicked routed event.
Declaration
public static RoutedEvent ConnectionClickedEvent
Field Value
|
RoutedEvent
|
ConnectionEditTemplateProperty
Identifies the ConnectionEditTemplate dependency property.
Declaration
public static readonly RadProperty ConnectionEditTemplateProperty
Field Value
|
RadProperty
|
ConnectionEditTemplateSelectorProperty
Identifies the ConnectionEditTemplateSelector dependency property.
Declaration
public static readonly RadProperty ConnectionEditTemplateSelectorProperty
Field Value
|
RadProperty
|
ConnectionRoundedCornersProperty
Identifies the RoundedCorners dependency property.
Declaration
public static readonly RadProperty ConnectionRoundedCornersProperty
Field Value
|
RadProperty
|
ConnectionTemplateProperty
Identifies the ConnectionTemplate dependency property.
Declaration
public static readonly RadProperty ConnectionTemplateProperty
Field Value
|
RadProperty
|
ConnectionTemplateSelectorProperty
Identifies the ConnectionTemplateSelector dependency property.
Declaration
public static readonly RadProperty ConnectionTemplateSelectorProperty
Field Value
|
RadProperty
|
DisplayMemberPathProperty
Identifies the DisplayMemberPath dependency property.
Declaration
public static readonly RadProperty DisplayMemberPathProperty
Field Value
|
RadProperty
|
GraphSourceProperty
Identifies the GraphSource dependency property.
Declaration
public static readonly RadProperty GraphSourceProperty
Field Value
|
RadProperty
|
IsAdditionalContentVisibleProperty
Identifies the IsAdditionalContentVisible dependency property.
Declaration
public static readonly RadProperty IsAdditionalContentVisibleProperty
Field Value
|
RadProperty
|
IsBackgroundSurfaceVisibleProperty
Identifies the IsBackgroundSurfaceVisible dependency property.
Declaration
public static readonly RadProperty IsBackgroundSurfaceVisibleProperty
Field Value
|
RadProperty
|
IsConnectorsManipulationEnabledProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
Declaration
public static readonly RadProperty IsConnectorsManipulationEnabledProperty
Field Value
|
RadProperty
|
IsDraggingEnabledProperty
Identifies the IsDraggingEnabled dependency property.
Declaration
public static readonly RadProperty IsDraggingEnabledProperty
Field Value
|
RadProperty
|
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly RadProperty IsEditableProperty
Field Value
|
RadProperty
|
IsInformationAdornerVisibleProperty
Identifies the IsInformationAdornerVisible dependency property.
Declaration
public static readonly RadProperty IsInformationAdornerVisibleProperty
Field Value
|
RadProperty
|
IsManipulationAdornerVisibleProperty
Identifies the IsManipulationAdornerVisible dependency property.
Declaration
public static readonly RadProperty IsManipulationAdornerVisibleProperty
Field Value
|
RadProperty
|
IsPanEnabledProperty
Identifies the IsPanEnabled dependency property.
Declaration
public static readonly RadProperty IsPanEnabledProperty
Field Value
|
RadProperty
|
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly RadProperty IsResizingEnabledProperty
Field Value
|
RadProperty
|
IsRotationEnabledProperty
Identifies the IsRotationEnabled dependency property.
Declaration
public static readonly RadProperty IsRotationEnabledProperty
Field Value
|
RadProperty
|
IsSnapToGridEnabledProperty
Identifies the IsSnapEnabled dependency property.
Declaration
public static readonly RadProperty IsSnapToGridEnabledProperty
Field Value
|
RadProperty
|
IsSnapToItemsEnabledProperty
Identifies the IsSnapToItemsEnabled dependency property.
Declaration
public static readonly RadProperty IsSnapToItemsEnabledProperty
Field Value
|
RadProperty
|
IsZoomEnabledProperty
Identifies the IsZoomEnabled dependency property.
Declaration
public static readonly RadProperty IsZoomEnabledProperty
Field Value
|
RadProperty
|
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly RadProperty ItemsProperty
Field Value
|
RadProperty
|
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly RadProperty PositionProperty
Field Value
|
RadProperty
|
RectSelectionModeProperty
Identifies the RectSelectionMode dependency property.
Declaration
public static readonly RadProperty RectSelectionModeProperty
Field Value
|
RadProperty
|
RouteConnectionsProperty
Identifies the RouteConnections dependency property.
Declaration
public static readonly RadProperty RouteConnectionsProperty
Field Value
|
RadProperty
|
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly RadProperty SelectedIndexProperty
Field Value
|
RadProperty
|
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly RadProperty SelectedItemProperty
Field Value
|
RadProperty
|
SelectionModeProperty
Identifies the SelectionMode dependency property.
Declaration
public static readonly RadProperty SelectionModeProperty
Field Value
|
RadProperty
|
ShapeClickedEvent
Identifies the ShapeClicked routed event.
Declaration
public static RoutedEvent ShapeClickedEvent
Field Value
|
RoutedEvent
|
ShapeDoubleClickedEvent
Identifies the ShapeDoubleClicked routed event.
Declaration
public static RoutedEvent ShapeDoubleClickedEvent
Field Value
|
RoutedEvent
|
ShapeEditTemplateProperty
Identifies the ShapeEditTemplate dependency property.
Declaration
public static readonly RadProperty ShapeEditTemplateProperty
Field Value
|
RadProperty
|
ShapeEditTemplateSelectorProperty
Identifies the ShapeEditTemplateSelector dependency property.
Declaration
public static readonly RadProperty ShapeEditTemplateSelectorProperty
Field Value
|
RadProperty
|
ShapeTemplateProperty
Identifies the ShapeTemplate dependency property.
Declaration
public static readonly RadProperty ShapeTemplateProperty
Field Value
|
RadProperty
|
ShapeTemplateSelectorProperty
Identifies the ShapeTemplateSelector dependency property.
Declaration
public static readonly RadProperty ShapeTemplateSelectorProperty
Field Value
|
RadProperty
|
SnapXProperty
SnapYProperty
SupportTouchGesturesProperty
Identifies the SupportTouchGestures dependency property.
Declaration
public static readonly RadProperty SupportTouchGesturesProperty
Field Value
|
RadProperty
|
ViewportProperty
Identifies the Viewport dependency property.
Declaration
public static readonly RadProperty ViewportProperty
Field Value
|
RadProperty
|
ZoomProperty
Identifies the Zoom dependency property.
Declaration
public static readonly RadProperty ZoomProperty
Field Value
|
RadProperty
|
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
|
AdditionalContent
Gets or sets the additional content element that provides extended functionality and settings access.
Declaration
public RadButtonElement AdditionalContent { get; set; }
Property Value
|
RadButtonElement
|
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
|
BackgroundGrid
Gets the background grid that provides visual grid lines for the diagram.
Declaration
public BackgroundGrid BackgroundGrid { get; }
Property Value
|
BackgroundGrid
|
BackgroundPageGrid
Gets the background page grid that provides page layout visualization.
Declaration
public BackgroundPageGrid BackgroundPageGrid { get; }
Property Value
|
BackgroundPageGrid
|
BindingContext
Gets or sets the BindingContext for the object.
Declaration
public override BindingContext BindingContext { get; set; }
Property Value
|
System.Windows.Forms.BindingContext
|
Overrides
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
|
DataTemplate
The connection edit template. |
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
ConnectionTemplate
Gets or sets the connection template.
Declaration
public DataTemplate ConnectionTemplate { get; set; }
Property Value
|
DataTemplate
The connection template. |
ConnectionTemplateSelector
Gets or sets the connection template selector.
Declaration
public DataTemplateSelector ConnectionTemplateSelector { get; set; }
Property Value
|
DataTemplateSelector
The connection template selector. |
ContainerGenerator
Gets the container generator.
Declaration
public IContainerGenerator<RadDiagramItem> ContainerGenerator { get; }
Property Value
|
IContainerGenerator<RadDiagramItem>
|
Controller
Gets the graph controller that manages diagram interactions, selections, and commands.
Declaration
public GraphController Controller { get; }
Property Value
|
GraphController
|
Cursor
Gets or sets the cursor displayed when hovering over the diagram.
Declaration
public Cursor Cursor { get; set; }
Property Value
|
System.Windows.Forms.Cursor
|
Implements
DataLayer
Declaration
public virtual DiagramDataLayer DataLayer { get; }
Property Value
|
DiagramDataLayer
|
Implements
DiagramElement
Gets or sets the framework element associated with the diagram.
Declaration
public FrameworkElement DiagramElement { get; set; }
Property Value
|
FrameworkElement
|
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
HorizontalScrollbar
Gets the horizontal scrollbar element of the diagram.
Declaration
public RadScrollBarElement HorizontalScrollbar { get; }
Property Value
|
RadScrollBarElement
|
HorizontalScrollbarVisibility
Declaration
public ScrollBarVisibility HorizontalScrollbarVisibility { get; set; }
Property Value
|
ScrollBarVisibility
|
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
InputBehavior
Gets or sets the input behavior that handles user interactions with the diagram.
Declaration
public virtual DiagramInputBehavior InputBehavior { get; set; }
Property Value
|
DiagramInputBehavior
|
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
IsSettingsPaneEnabled
Gets or sets a value indicating whether the settings pane is enabled for the diagram.
Declaration
public bool IsSettingsPaneEnabled { get; set; }
Property Value
|
System.Boolean
|
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
IsUpdating
Declaration
public bool IsUpdating { get; }
Property Value
|
System.Boolean
|
IsZoomEnabled
Gets or sets a value indicating whether zooming is enabled.
Declaration
public bool IsZoomEnabled { get; set; }
Property Value
|
System.Boolean
|
Implements
ItemInformationAdorner
Gets or sets the item information adorner that displays additional information about selected diagram items.
Declaration
public ItemInformationAdorner ItemInformationAdorner { get; set; }
Property Value
|
ItemInformationAdorner
|
Items
Gets or sets the diagramming items.
Declaration
public DiagramItemCollection Items { get; }
Property Value
|
DiagramItemCollection
The items. |
Implements
ItemsHost
Gets the diagram surface that hosts and manages all diagram items.
Declaration
public DiagramSurface ItemsHost { get; }
Property Value
|
DiagramSurface
|
MainPanel
Gets the main panel that contains all diagram visual elements and provides coordinate transformation.
Declaration
public Panel MainPanel { get; }
Property Value
|
Panel
|
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
|
Point
The position. |
Implements
RectSelectionMode
Gets or sets the rectangle selection mode.
Declaration
public RectSelectionMode RectSelectionMode { get; set; }
Property Value
|
RectSelectionMode
|
Implements
RegisteredCommands
Declaration
public static List<CommandBinding> RegisteredCommands { get; set; }
Property Value
|
System.Collections.Generic.List<CommandBinding>
|
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<IDiagramItem> SelectedItems { get; }
Property Value
|
System.Collections.Generic.IEnumerable<IDiagramItem>
|
SelectionBounds
Gets the starting selection bounds.
Declaration
public Rect SelectionBounds { get; }
Property Value
|
Rect
|
SelectionMode
Gets or sets the selection mode.
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
|
SelectionMode
|
Implements
ServiceLocator
Gets the service locator.
Declaration
public IServiceLocator ServiceLocator { get; }
Property Value
|
IServiceLocator
|
Implements
SettingsPane
Gets or sets the diagram settings pane that provides configuration options for selected items.
Declaration
public RadDiagramSettingsPane SettingsPane { get; set; }
Property Value
|
RadDiagramSettingsPane
|
ShapeEditTemplate
Gets or sets the shape edit template.
Declaration
public DataTemplate ShapeEditTemplate { get; set; }
Property Value
|
DataTemplate
The shape edit template. |
ShapeEditTemplateSelector
Gets or sets the shape edit template selector.
Declaration
public DataTemplateSelector ShapeEditTemplateSelector { get; set; }
Property Value
|
DataTemplateSelector
The shape edit template selector. |
Shapes
Gets the shapes.
Declaration
public ShapeCollection Shapes { get; }
Property Value
|
ShapeCollection
|
Implements
ShapeTemplate
Gets or sets the shape template.
Declaration
public DataTemplate ShapeTemplate { get; set; }
Property Value
|
DataTemplate
The shape template. |
ShapeTemplateSelector
Gets or sets the shape template selector.
Declaration
public DataTemplateSelector ShapeTemplateSelector { get; set; }
Property Value
|
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
UndoRedoService
Gets the undo redo service.
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
|
IUndoRedoService
|
VerticalScrollbar
Gets the vertical scrollbar element of the diagram.
Declaration
public RadScrollBarElement VerticalScrollbar { get; }
Property Value
|
RadScrollBarElement
|
VerticalScrollbarVisibility
Declaration
public ScrollBarVisibility VerticalScrollbarVisibility { get; set; }
Property Value
|
ScrollBarVisibility
|
Viewport
Gets the bounds of the viewport.
Declaration
public Rect Viewport { get; }
Property Value
|
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(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
|
AddConnection(Point, Point, Boolean)
Adds a floating connection.
Declaration
public IConnection AddConnection(Point startPoint, Point endPoint, bool isUndoable = false)
Parameters
|
Point
startPoint
The source (starting) point of the connection. |
|
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
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
|
|
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. |
|
Geometry
geometry
The geometry. |
|
System.Nullable<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<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
|
ArrangeOverride(SizeF)
Arranges the child elements of the diagram and positions scrollbars and adorners.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The final size that the diagram should use to arrange its child elements. |
Returns
|
System.Drawing.SizeF
The actual size used by the diagram. |
Overrides
AutoFit()
Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas.
Declaration
protected 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
protected void AutoFit(Thickness margin, bool useAnimation = true)
Parameters
|
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
protected void AutoFitAsync(Thickness margin, bool useAnimation = true)
Parameters
|
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
BeginUpdate()
Begins the update.
Declaration
public void BeginUpdate()
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
|
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
|
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
|
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()
CreateChildElements()
Creates the child elements that make up the diagram's visual structure including scrollbars, adorners, and diagram surface.
Declaration
protected override void CreateChildElements()
Overrides
CreateDiagramDataLayer()
Creates a data layer for the diagram that manages data binding and visualization.
Declaration
protected virtual DiagramDataLayer CreateDiagramDataLayer()
Returns
|
DiagramDataLayer
A new instance of DiagramDataLayer for the diagram. |
CreateInputBehavior()
Creates the input behavior for the diagram that handles user interactions and input processing.
Declaration
protected virtual DiagramInputBehavior CreateInputBehavior()
Returns
|
DiagramInputBehavior
A new instance of DiagramInputBehavior for handling diagram interactions. |
CreatePanel()
Creates a panel element for the diagram viewport.
Declaration
protected virtual RadElement CreatePanel()
Returns
|
RadElement
A new RadElement that serves as the diagram panel. |
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
DpiScaleChanged(SizeF)
Called when the DPI scale factor changes and adjusts the diagram zoom accordingly.
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
|
System.Drawing.SizeF
scaleFactor
The new DPI scale factor to apply. |
Overrides
EndUpdate(Boolean)
Ends the update.
Declaration
public void EndUpdate(bool performUpdate = true)
Parameters
|
System.Boolean
performUpdate
Tells the view whether an update is required or not. |
Export(String)
Exports the Diagram into bmp.
Declaration
public void Export(string fileName)
Parameters
|
System.String
fileName
|
ExportToImage()
Exports RadDiagram to Image
Declaration
public Image ExportToImage()
Returns
|
System.Drawing.Image
The Image. Should be manually disposed. |
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
|
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. |
ForceUpdateLayout()
Declaration
protected virtual void ForceUpdateLayout()
GetConnectionContainerForItemOverride(Object)
Gets the connection container for item override.
Declaration
protected virtual IConnection GetConnectionContainerForItemOverride(object item)
Parameters
|
System.Object
item
The item. |
Returns
|
IConnection
|
GetScrollBarsSize()
Gets the size required for the scrollbars based on current visibility and theme settings.
Declaration
protected Size GetScrollBarsSize()
Returns
|
System.Drawing.Size
A System.Drawing.Size representing the space needed for scrollbars. |
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
|
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. |
LoadFromFile(String)
Load Diagram to XML file
Declaration
public void LoadFromFile(string fileName)
Parameters
|
System.String
fileName
|
OnBindingContextChanged(EventArgs)
Raises the BindingContextChanged event.
Declaration
protected virtual void OnBindingContextChanged(EventArgs e)
Parameters
|
System.EventArgs
e
The System.EventArgs instance containing the event data. |
OnBoundsChanged(RadPropertyChangedEventArgs)
Called when the bounds of the element change and handles diagram size updates.
Declaration
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters
|
RadPropertyChangedEventArgs
e
The event data that contains bounds change information. |
Overrides
OnCanExecuteDeleteCommandOverride(Object, CanExecuteRoutedEventArgs)
Determines whether the delete command can be executed based on the current selection.
Declaration
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)
Parameters
|
System.Object
sender
The source of the event. |
|
CanExecuteRoutedEventArgs
e
The command execution event arguments. |
OnDeleteCommandExecutedOverride(Object, ExecutedRoutedEventArgs)
Executes the delete command for the currently selected diagram items.
Declaration
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)
Parameters
|
System.Object
sender
The source of the event. |
|
ExecutedRoutedEventArgs
e
The command execution event arguments. |
OnIsConnectorsManipulationEnabledChanged(Boolean, Boolean)
Called when the connector manipulation enabled property changes and updates diagram items accordingly.
Declaration
protected virtual void OnIsConnectorsManipulationEnabledChanged(bool oldValue, bool newValue)
Parameters
|
System.Boolean
oldValue
The previous value of the property. |
|
System.Boolean
newValue
The new value of the property. |
OnKeyDownHandled(Object, KeyEventArgs)
Handles key down events for the diagram and processes diagram-specific keyboard shortcuts and commands.
Declaration
protected virtual void OnKeyDownHandled(object sender, KeyEventArgs e)
Parameters
|
System.Object
sender
The source of the event. |
|
System.Windows.Forms.KeyEventArgs
e
The key event arguments containing key information. |
OnKeyUpHandled(Object, KeyEventArgs)
Handles key up events for the diagram.
Declaration
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)
Parameters
|
System.Object
sender
The source of the event. |
|
System.Windows.Forms.KeyEventArgs
e
The key event arguments containing key information. |
OnLoaded()
Called when the element is loaded and initializes the diagram layout and viewport.
Declaration
protected override void OnLoaded()
Overrides
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed down over the diagram.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
|
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments containing button and position information. |
Overrides
OnMouseMove(MouseEventArgs)
Called when the mouse moves over the diagram and delegates processing to the input behavior.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
|
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments containing position and button information. |
Overrides
OnMouseWheel(MouseEventArgs)
Called when the mouse wheel is used to zoom the diagram.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
|
System.Windows.Forms.MouseEventArgs
e
The instance containing the event data. |
Overrides
OnPanGesture(PanGestureEventArgs)
Handles pan gesture events for touch-based diagram navigation and panning.
Declaration
protected override void OnPanGesture(PanGestureEventArgs args)
Parameters
|
PanGestureEventArgs
args
The pan gesture event arguments containing gesture information. |
Overrides
OnPositionChanged(Point, Point)
Called when the Position property changes.
Declaration
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
|
Point
oldPosition
|
|
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. |
OnShapeClicked(ShapeRoutedEventArgs)
Declaration
protected virtual void OnShapeClicked(ShapeRoutedEventArgs e)
Parameters
|
ShapeRoutedEventArgs
e
|
OnShapeDoubleClicked(ShapeRoutedEventArgs)
Declaration
protected virtual void OnShapeDoubleClicked(ShapeRoutedEventArgs e)
Parameters
|
ShapeRoutedEventArgs
e
|
OnZoomChanged(Double, Double)
Called when the Zoomproperty changes.
Declaration
protected virtual void OnZoomChanged(double oldZoom, double newZoom)
Parameters
|
System.Double
oldZoom
|
|
System.Double
newZoom
|
OnZoomGesture(ZoomGestureEventArgs)
Handles zoom gesture events for touch-based diagram zooming.
Declaration
protected override void OnZoomGesture(ZoomGestureEventArgs args)
Parameters
|
ZoomGestureEventArgs
args
The zoom gesture event arguments containing zoom information. |
Overrides
PanToPosition(Point)
Pans the diagram to the provided position. The values are interpreted in the zoomed coordinate system. This means that panning with 100 pixel will result in visual translation with 100 pixel.
Declaration
public virtual void PanToPosition(Point newPosition)
Parameters
|
Point
newPosition
The new position. |
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
|
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
|
FrameworkElement
container
The container. |
|
System.Object
item
The item. |
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 settings for the diagram.
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. |
SaveToFile(String)
Save Diagram to XML file
Declaration
public void SaveToFile(string fileName)
Parameters
|
System.String
fileName
|
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
SetLayout(LayoutType, Object)
Organizes the diagram using the specified layout.
Declaration
public void SetLayout(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
ShouldSerializeProperty(PropertyDescriptor)
Determines whether a property should be serialized based on the property descriptor.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
|
System.ComponentModel.PropertyDescriptor
property
The property descriptor to check for serialization. |
Returns
|
System.Nullable<System.Boolean>
True if the property should be serialized; otherwise, false or null for default behavior. |
Overrides
Snap(IEnumerable<IShape>)
Snaps the specified shapes.
Declaration
public void Snap(IEnumerable<IShape> shapes)
Parameters
|
System.Collections.Generic.IEnumerable<IShape>
shapes
|
TryExecuteCommand(Keys, Keys)
Declaration
public void TryExecuteCommand(Keys key, Keys modifier)
Parameters
|
System.Windows.Forms.Keys
key
|
|
System.Windows.Forms.Keys
modifier
|
TryExecuteCommand(RoutedUICommand, String)
Declaration
public void TryExecuteCommand(RoutedUICommand routedUiCommand, string commandParameter = "")
Parameters
|
RoutedUICommand
routedUiCommand
|
|
System.String
commandParameter
|
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
|
Rect
bounds
|
ZoomIn(Nullable<Double>, Nullable<Point>)
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? ))
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<Point>
targetPoint
The center of the zoom. The point should be provided in viewport coordinates. |
ZoomOut(Nullable<Double>, Nullable<Point>)
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? ))
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<Point>
targetPoint
The center of the zoom. The point should be provided in viewport coordinates. |
Events
AdditionalContentActivated
Occurs when AdditionContent is activated.
Declaration
public event EventHandler<AdditionalContentActivatedEventArgs> AdditionalContentActivated
Event Type
|
System.EventHandler<AdditionalContentActivatedEventArgs>
|
BindingContextChanged
Declaration
public event EventHandler BindingContextChanged
Event Type
|
System.EventHandler
|
CommandExecuted
Occurs when a command is executed.
Declaration
public event EventHandler<CommandEventArgs> CommandExecuted
Event Type
|
System.EventHandler<CommandEventArgs>
|
ConnectionAdded
Occurs when a connection is added.
Declaration
public event EventHandler<GenericEventArgs<IConnection>> ConnectionAdded
Event Type
|
System.EventHandler<GenericEventArgs<IConnection>>
|
ConnectionAdding
Occurs when the connection is being added.
Declaration
public event EventHandler<GenericEventArgs<IConnection>> ConnectionAdding
Event Type
|
System.EventHandler<GenericEventArgs<IConnection>>
|
ConnectionClicked
Occurs when connection is clicked.
Declaration
public event EventHandler<GenericEventArgs<IConnection>> ConnectionClicked
Event Type
|
System.EventHandler<GenericEventArgs<IConnection>>
|
ConnectionDeserialized
Occurs when a connection has been deserialized.
Declaration
public event EventHandler<SerializationEventArgs<IConnection>> ConnectionDeserialized
Event Type
|
System.EventHandler<SerializationEventArgs<IConnection>>
|
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<ManipulationEventArgs> ConnectionManipulationCompleted
Event Type
|
System.EventHandler<ManipulationEventArgs>
|
ConnectionManipulationStarted
Occurs before the connection manipulation has started.
Declaration
public event EventHandler<ManipulationEventArgs> ConnectionManipulationStarted
Event Type
|
System.EventHandler<ManipulationEventArgs>
|
ConnectionSerialized
Occurs when a connection has been serialized.
Declaration
public event EventHandler<SerializationEventArgs<IConnection>> ConnectionSerialized
Event Type
|
System.EventHandler<SerializationEventArgs<IConnection>>
|
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 RoutedEventHandler Deserialized
Event Type
|
RoutedEventHandler
|
DiagramLayoutComplete
Occurs when the diagram layout has completed.
Declaration
public event EventHandler<DiagramLayoutEventArgs> DiagramLayoutComplete
Event Type
|
System.EventHandler<DiagramLayoutEventArgs>
|
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<SerializationInfoEventArgs> MetadataDeserialized
Event Type
|
System.EventHandler<SerializationInfoEventArgs>
|
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<SerializationInfoEventArgs> MetadataSerialized
Event Type
|
System.EventHandler<SerializationInfoEventArgs>
|
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<PositionChangedEventArgs> PositionChanged
Event Type
|
System.EventHandler<PositionChangedEventArgs>
|
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<RoutedEventArgs> PreviewRotate
Event Type
|
System.EventHandler<RoutedEventArgs>
|
PreviewSelectionChanged
Occurs when the selection of the diagram starts changing.
Declaration
public event EventHandler PreviewSelectionChanged
Event Type
|
System.EventHandler
|
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<ResizingEventArgs> Resize
Event Type
|
System.EventHandler<ResizingEventArgs>
|
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 EventHandler SelectionChanged
Event Type
|
System.EventHandler
|
Serialized
Occurs after the diagram has been serialized.
Declaration
public event RoutedEventHandler Serialized
Event Type
|
RoutedEventHandler
|
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<SerializationEventArgs<IShape>> ShapeDeserialized
Event Type
|
System.EventHandler<SerializationEventArgs<IShape>>
|
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<SerializationEventArgs<IShape>> ShapeSerialized
Event Type
|
System.EventHandler<SerializationEventArgs<IShape>>
|
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<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<DiagramZoomEventArgs> ZoomChanged
Event Type
|
System.EventHandler<DiagramZoomEventArgs>
|
Explicit Interface Implementations
IGraph.IsVirtualizing
Declaration
bool IGraph.IsVirtualizing { get; }
Returns
|
System.Boolean
|
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<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.RaiseItemsChangedEvent(NotifyCollectionChangedAction, IEnumerable, IEnumerable)
Declaration
void IGraphInternal.RaiseItemsChangedEvent(NotifyCollectionChangedAction action, IEnumerable newItems, IEnumerable oldItems)
Parameters
|
System.Collections.Specialized.NotifyCollectionChangedAction
action
|
|
System.Collections.IEnumerable
newItems
|
|
System.Collections.IEnumerable
oldItems
|
Implements
IGraphInternal.RaiseItemsChangingEvent(NotifyCollectionChangedAction, IEnumerable, IEnumerable)
Declaration
bool IGraphInternal.RaiseItemsChangingEvent(NotifyCollectionChangedAction action, IEnumerable newItems, IEnumerable oldItems)
Parameters
|
System.Collections.Specialized.NotifyCollectionChangedAction
action
|
|
System.Collections.IEnumerable
newItems
|
|
System.Collections.IEnumerable
oldItems
|
Returns
|
System.Boolean
|
Implements
IGraphInternal.Segmentation
Declaration
ISegmentationService IGraphInternal.Segmentation { get; }
Returns
|
ISegmentationService
|
Implements
IGraphInternal.TransformPoint(Point)
Declaration
Point IGraphInternal.TransformPoint(Point point)
Parameters
|
Point
point
|
Returns
|
Point
|
Implements
IGraphInternal.UpdateAdorners()
IGraphInternal.UpdateRectSelection(Rect)
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. |