Property ContentAnchor
ContentAnchor
Anchor point that specifies a position within the rectangle.
Declaration
RegionAnchorType ContentAnchor { get; set; }
Property Value
Type | Description |
---|---|
RegionAnchorType |
Remarks
For example, given a rectangle of 200x100 (width x height):
- If the ContentAnchor is set to TopLeft, and we have a content of size 50x50, the content's top left corner will align with the rectangle's top left corner.
- If the ContentAnchor is set to BottomRight, and we have a content of size 50x50, the content's top left corner will be positioned at (150,50) within the rectangle.