GeonBit.UI Documentation
ColoredRectangle Constructor (Vector2, Anchor, NullableVector2) |
Create the rectangle with default styling.
Namespace: GeonBit.UI.Entities
Assembly: GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)

C#
public ColoredRectangle( Vector2 size, Anchor anchor = Anchor.Auto, Nullable<Vector2> offset = null )
Parameters
- size
- Type: Vector2
Rectangle size in pixels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from position anchor.
