Method GetParts
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
partNineRects.NineRectsPartsA 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.