Table of Contents

Method GetRectRegion

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

GetRectRegion(Rectangle)

When implemented by a class, returns region corresponding to given rectangle.

Region GetRectRegion(Rectangle rect)

Parameters

rect Rectangle

Rectangle to check.

Returns

Region

Region corresponding to given rectangle.

GetRectRegion(SelectionType, Rectangle, bool, bool)

When implemented by a class, returns region corresponding to given rectangle.

Region GetRectRegion(SelectionType selectionType, Rectangle rect, bool topLeftEnd, bool bottomRightEnd)

Parameters

selectionType SelectionType

Specifies selection type.

rect Rectangle

Rectangle to check.

topLeftEnd bool

Boolean value indicating if the region's topleft corner should be calculated taking into account end of the wrapped line.

bottomRightEnd bool

Boolean value indicating if the region's bottomright corner should be calculated taking into account end of the wrapped line.

Returns

Region

Region corresponding to given rectangle.