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

Represents the service responsible for logical segmentation of Diagram.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class SegmentationService : GraphServiceBase, ISegmentationService

Inheritance: objectGraphServiceBaseSegmentationService

Implements: ISegmentationService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the SegmentationService class.

C#
public SegmentationService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets a value indicating whether this instance is segmentation enabled.

C#
public virtual bool IsSegmentationEnabled { get; }

Implements: ISegmentationService.IsSegmentationEnabled

Gets or sets the segment step.

C#
public int SegmentStep { get; set; }

Methods

Gets the shapes.

C#
public virtual IEnumerable<IShape> GetShapes(Point point, double delta)
Parameters:pointPoint

The point.

deltadouble

The delta.

Returns:

IEnumerable<IShape>

Implements: ISegmentationService.GetShapes(Point, double)

Gets the shapes.

C#
public virtual IEnumerable<IShape> GetShapes(Rect rect)
Parameters:rectRect

The rectangle.

Returns:

IEnumerable<IShape>

Implements: ISegmentationService.GetShapes(Rect)

Maps the shape.

C#
public virtual void MapShape(IShape shape, Rect bounds)
Parameters:shapeIShape

The shape.

boundsRect

The bounds.

Implements: ISegmentationService.MapShape(IShape, Rect)

Maps the shape.

C#
public virtual void MapShape(IShape shape)
Parameters:shapeIShape

The shape.

Implements: ISegmentationService.MapShape(IShape)

Maps the shapes.

C#
public virtual void MapShapes(IEnumerable<IShape> shapes)
Parameters:shapesIEnumerable<IShape>

The shapes.

Implements: ISegmentationService.MapShapes(IEnumerable<IShape>)

Un-maps the shape.

C#
public virtual void UnmapShape(IShape shape)
Parameters:shapeIShape

The shape.

Implements: ISegmentationService.UnmapShape(IShape)