<PackageReference Include="System.Drawing.Common" Version="9.0.0" />

ContentAlignment

public enum ContentAlignment
Specifies alignment of content on the drawing surface.

Content is vertically aligned at the bottom, and horizontally aligned at the center.

BottomLeft = 256

Content is vertically aligned at the bottom, and horizontally aligned on the left.

BottomRight = 1024

Content is vertically aligned at the bottom, and horizontally aligned on the right.

Content is vertically aligned in the middle, and horizontally aligned at the center.

Content is vertically aligned in the middle, and horizontally aligned on the left.

Content is vertically aligned in the middle, and horizontally aligned on the right.

Content is vertically aligned at the top, and horizontally aligned at the center.

TopLeft = 1

Content is vertically aligned at the top, and horizontally aligned on the left.

Content is vertically aligned at the top, and horizontally aligned on the right.