Class RadDiagramElement
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, 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
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
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
Cursor
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
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
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
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
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
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
MainPanel
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 selection mini toolbar.
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
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)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
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()
Declaration
protected override void CreateChildElements()
Overrides
CreateDiagramDataLayer()
CreateInputBehavior()
Declaration
protected virtual DiagramInputBehavior CreateInputBehavior()
Returns
DiagramInputBehavior
|
CreatePanel()
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)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
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()
Declaration
protected Size GetScrollBarsSize()
Returns
System.Drawing.Size
|
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)
Declaration
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnCanExecuteDeleteCommandOverride(Object, CanExecuteRoutedEventArgs)
Called on can execute delete command.
Declaration
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)
Parameters
System.Object
sender
|
CanExecuteRoutedEventArgs
e
|
OnDeleteCommandExecutedOverride(Object, ExecutedRoutedEventArgs)
Called when delete command is executed.
Declaration
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)
Parameters
System.Object
sender
|
ExecutedRoutedEventArgs
e
|
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.Forms.KeyEventArgs
e
|
OnKeyUpHandled(Object, KeyEventArgs)
Declaration
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Forms.KeyEventArgs
e
|
OnLoaded()
OnMouseDown(MouseEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonDown event occurs.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The data for the event. |
Overrides
OnMouseMove(MouseEventArgs)
Called before the System.Windows.UIElement.MouseMove event occurs.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The data for the event. |
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)
Declaration
protected override void OnPanGesture(PanGestureEventArgs args)
Parameters
PanGestureEventArgs
args
|
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)
Declaration
protected override void OnZoomGesture(ZoomGestureEventArgs args)
Parameters
ZoomGestureEventArgs
args
|
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.
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)
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
|
Returns
System.Nullable<System.Boolean>
|
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. |