DataGridLengthUnitType 枚举

定义

定义一些常量,这些常量指定如何调整 DataGrid 中元素的大小。Defines constants that specify how elements in a DataGrid are sized.

public enum class DataGridLengthUnitType
public enum DataGridLengthUnitType
type DataGridLengthUnitType = 
Public Enum DataGridLengthUnitType
继承
DataGridLengthUnitType

字段

Auto 0

元素大小基于单元格的内容和列标题。The size is based on the contents of both the cells and the column header.

Pixel 1

元素大小为以像素表示的固定值。The size is a fixed value expressed in pixels.

SizeToCells 2

元素大小基于单元格的内容。The size is based on the contents of the cells.

SizeToHeader 3

元素大小基于列标题的内容。The size is based on the contents of the column header.

Star 4

元素大小为可用空间的加权比例。The size is a weighted proportion of available space.

适用于