New to Telerik UI for WinFormsStart a free 30-day trial

The event argument supplied when the diagram layout event is raised.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class DiagramLayoutEventArgs : EventArgs

Inheritance: objectEventArgsDiagramLayoutEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the DiagramLayoutEventArgs class.

C#
public DiagramLayoutEventArgs(LayoutType type, object settings, DiagramLayoutState oldState, DiagramLayoutState newState)
Parameters:typeLayoutType

The layout type to apply.

settingsobject

The settings specific to the layout type.

oldStateDiagramLayoutState

The old positions of the shapes.

newStateDiagramLayoutState

The new positions of the shapes.

Properties

Gets the layout settings specific to the applied layout type.

C#
public object LayoutSettings { get; }

Gets the type of the layout algorithm that has been applied.

C#
public LayoutType LayoutType { get; }

Gets state and the positions of shapes after the layout was applied.

C#
public DiagramLayoutState NewState { get; }

Gets state and the positions of shapes before the layout was applied.

C#
public DiagramLayoutState OldState { get; }