VegaRise.NET
Back to DOM

RectangleAlignmentValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies a point within a rectangle (corner, edge midpoint, or center).

Remarks

Used by effect anchors (reflection, shadow), tile alignment, and any other API that needs to name a specific point on a rectangle's boundary.

Examples

csharp
1// 1. Top-left
2var a = RectangleAlignmentValues.TopLeft;
3
csharp
1// 2. Center
2var a = RectangleAlignmentValues.Center;
3
csharp
1// 3. Bottom-right
2var a = RectangleAlignmentValues.BottomRight;
3
csharp
1// 4. Anchor a reflection to the bottom-center
2var reflection = new Reflection { Alignment = RectangleAlignmentValues.BottomCenter };
3

Fields

Bottom

Bottom edge midpoint ("b").

BottomLeft

Bottom-left corner ("bl").

BottomRight

Bottom-right corner ("br").

Center

Center point ("ctr").

Left

Left edge midpoint ("l").

None

No alignment.

Right

Right edge midpoint ("r").

Top

Top edge midpoint ("t").

TopLeft

Top-left corner ("tl").

TopRight

Top-right corner ("tr").

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.