Table of Contents

Struct NineRects

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

Implements slicing of the rectangle into 9 parts.

public struct NineRects

Remarks

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.

Center

Same as Patch.

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.

TopCenter

Top-center corner of the Container.

TopLeft

Top-left corner of the Container.

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.

TopRight

Top-right corner of the Container.

Methods

GetRect(HorizontalAlignment, VerticalAlignment)

Gets rectangle specified by horz and vert params. 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.