Table of Contents

Method OuterRectInsideContainer

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

OuterRectInsideContainer(RectI, NineRectsParts)

Returns the first outer rectangle that is fully contained within the specified container rectangle.

public readonly RectI? OuterRectInsideContainer(RectI container, NineRects.NineRectsParts parts = NineRectsParts.Outer)

Parameters

container RectI

The rectangle that defines the container area.

parts NineRects.NineRectsParts

The parts of the nine-part grid to consider for containment checking. Optional. Default is All.

Returns

RectI?

The first rectangle that is fully contained within the container, or null if no such rectangle is found.