Class
LayoutService

Diagram service managing the layout process.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class LayoutService : GraphServiceBase, ILayoutService

Inheritance: objectGraphServiceBaseLayoutService

Implements: ILayoutService

Inherited Members GraphServiceBase.Graph

Constructors

LayoutService(IGraphInternal)

Initializes a new instance of the LayoutService class.

Declaration

cs-api-definition
public LayoutService(IGraphInternal graph)

Parameters

graph

IGraphInternal

The graph.

Properties

IsLayouting

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

Declaration

cs-api-definition
public bool IsLayouting { get; set; }

Property Value

bool

Implements ILayoutService.IsLayouting

Methods

Layout(LayoutType, object)

Organizes the diagram using the specified layout.

Declaration

cs-api-definition
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)

Parameters

type

LayoutType

The layout type to apply.

settings

object

The settings specific to the layout type.

Implements ILayoutService.Layout(LayoutType, object)