Struct NineRects
Implements slicing of the rectangle into 9 parts.
public struct NineRects
Remarks
Issue with details is here: https://github.com/alternetsoft/AlternetUI/issues/115.
Constructors
- NineRects(RectD, RectD, float)
Initializes a new instance of the NineRects class with the specified container and patch rectangles.
- NineRects(RectI, RectI)
Initializes a new instance of the NineRects class with the specified container and patch rectangles.
Properties
- BottomCenter
Bottom-center corner of the Container.
- BottomLeft
Bottom-left corner of the Container.
- BottomRect
Gets the bottom rectangular region defined by the container's position and the patch's dimensions. This rectangle returns the area which is below the patch.
- BottomRight
Bottom-right corner of the Container.
- CenterLeft
Center-left corner of the Container.
- CenterRight
Center-right corner of the Container.
- Container
Rectangle which is sliced.
- IsTopRectLarger
Gets a value indicating whether the height of the top rectangle is greater than the height of the bottom rectangle.
- Patch
Rectangle which defines sliced parts.
- Rects
Gets all 9 rectangles.
- TopRect
Gets the top rectangular region defined by the container's position and the patch's dimensions. This rectangle returns the area which is above the patch.
Methods
- GetRect(HorizontalAlignment, VerticalAlignment)
Gets rectangle specified by
horzandvertparams. Only left, center, right, top, bottom values are supported.
- SuggestVertAlignmentForToolTip(RectD, RectD)
Suggests the vertical alignment for a tooltip based on the relative sizes and positions of a container rectangle and an item rectangle.