Table of Contents

Method GetParts

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

GetParts(NineRectsParts)

Returns an array of rectangular regions corresponding to the specified parts of the nine-part grid.

public readonly RectI[] GetParts(NineRects.NineRectsParts part)

Parameters

part NineRects.NineRectsParts

A bitwise combination of NineRects.NineRectsParts values that specifies which parts of the grid to include.

Returns

RectI[]

An array of RectI objects representing the requested parts. The array is empty if no matching parts are specified.

Remarks

The order of rectangles in the returned array matches the order of the NineRects.NineRectsParts flags as defined in the grid: top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, and bottom-right. Duplicate flags are ignored.