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

Diagram service managing the layout process.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class LayoutService : GraphServiceBase, ILayoutService

Inheritance: objectGraphServiceBaseLayoutService

Implements: ILayoutService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the LayoutService class.

C#
public LayoutService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets a value indicating whether the layout is currently busy organizing the diagram.

C#
public bool IsLayouting { get; set; }

Implements: ILayoutService.IsLayouting

Methods

Organizes the diagram using the specified layout.

C#
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters:typeLayoutType

The layout type to apply.

settingsobject

The settings specific to the layout type.

Implements: ILayoutService.Layout(LayoutType, object)