New to Telerik UI for WinForms? Start a free 30-day trial

Combines added rectangles into closed outline figures, merging touching horizontal segments where possible.

Definition

Namespace:Telerik.WinForms.Documents.Selection.PathBuilder

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class RectPathBuilder

Inheritance: objectRectPathBuilder

Constructors

Creates an empty rectangle-outline accumulator.

C#
public RectPathBuilder()

Methods

Adds a rectangle to the current outline batch. Rectangles whose horizontal edges touch may be merged into one figure.

C#
public void AddRect(RectangleF rect)
Parameters:rectRectangleF

The rectangle to add.

Enumerates the accumulated outlines as point sequences, then clears the accumulator for the next batch.

C#
public IEnumerable<IEnumerable<PointF>> GetFiguresAndStartNew()
Returns:

IEnumerable<IEnumerable<PointF>>

The point sequences that form the accumulated outline figures.