[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Contour

Contour Class

Represents a closed figure on a LayoutView.

Inheritance
Contour
Namespace: GrapeCity.Documents.Layout
Assembly: DS.Documents.Imaging.dll
Syntax
public class Contour
Public Class Contour

Properties

Name Description
Points

Gets a read-only list of AnchorPoints.

Tag

Gets or sets the object that contains data about the Contour.

View

Gets the owner LayoutView object.

Methods

Name Description
AddPoint(AnchorPoint)

Adds one AnchorPoint to the Contour.

AddPoints(IEnumerable<AnchorPoint>)

Adds all AnchorPoints from the collection to the Contour.

DetachFromView()

Detaches the Contour from its owner LayoutView and removes all constraints referencing the Contour.

GetBounds(LayoutRect)

Gets the minimal RectangleF that contains all points of the Contour relative to the specified LayoutRect.

GetBounds(LayoutRect, out float, out float, out float, out float)

Gets the minimum and maximum positions of the Contour relative to the specified LayoutRect.

GetBounds(LayoutView)

Gets the minimal RectangleF that contains all points of the Contour relative to the specified LayoutView.

GetBounds(LayoutView, out float, out float, out float, out float)

Gets the minimum and maximum positions of the Contour relative to the specified LayoutView.

MapToRect(LayoutRect)

Returns an array of all AnchorPoint coordinates transformed to the specified LayoutRect.

MapToView(LayoutView)

Returns an array of all AnchorPoint coordinates transformed to the specified LayoutView.