Skip to main content
Version: 3.5

DataGridViewContentAlignment

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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

public enum DataGridViewContentAlignment : Enum

Fields

NameDescription
BottomCenterThe content is aligned vertically at the bottom and horizontally at the center of a cell.
BottomLeftThe content is aligned vertically at the bottom and horizontally at the left of a cell.
BottomRightThe content is aligned vertically at the bottom and horizontally at the right of a cell.
MiddleCenterThe content is aligned at the vertical and horizontal center of a cell.
MiddleLeftThe content is aligned vertically at the middle and horizontally at the left of a cell.
MiddleRightThe content is aligned vertically at the middle and horizontally at the right of a cell.
NotSetThe alignment is not set.
TopCenterThe content is aligned vertically at the top and horizontally at the center of a cell.
TopLeftThe content is aligned vertically at the top and horizontally at the left of a cell.
TopRightThe content is aligned vertically at the top and horizontally at the right of a cell.

Used By

NameDescription
DataGridViewImageCell.ImageAlignmentGets or sets the alignment of the image in the cell.
DataGridViewImageColumn.CellImageAlignmentGets or sets the image alignment in the cells for the column.
DataGridViewCellStyle.AlignmentReturns or sets a value indicating the position of the cell content within a DataGridViewCell cell.