System.Windows.Forms.DataGridViewContentAlignment Enumeration

Defines constants that indicate the alignment of content within a System.Windows.Forms.DataGridView cell.

Syntax

public enum DataGridViewContentAlignment

Remarks

This enumeration is used by the DataGridViewCellStyle.Alignment property.

Members

Member NameDescription
BottomCenter

The content is aligned vertically at the bottom and horizontally at the center of a cell.

BottomLeft

The content is aligned vertically at the bottom and horizontally at the left of a cell.

BottomRight

The content is aligned vertically at the bottom and horizontally at the right of a cell.

MiddleCenter

The content is aligned at the vertical and horizontal center of a cell.

MiddleLeft

The content is aligned vertically at the middle and horizontally at the left of a cell.

MiddleRight

The content is aligned vertically at the middle and horizontally at the right of a cell.

NotSet

The alignment is not set.

TopCenter

The content is aligned vertically at the top and horizontally at the center of a cell.

TopLeft

The content is aligned vertically at the top and horizontally at the left of a cell.

TopRight

The content is aligned vertically at the top and horizontally at the right of a cell.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0