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(RectI, RectI)

Initializes a new instance of the NineRects struct.

Properties

BottomCenter

Bottom-center corner of the Container.

BottomLeft

Bottom-left corner of the Container.

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.

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.

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.