GridResizeBehavior 枚举

定义

指定由 GridSplitter 控件调整其大小的行或列。Specifies the rows or columns that are resized by a GridSplitter control.

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

字段

BasedOnAlignment 0

将根据 HorizontalAlignmentVerticalAlignment 属性的值重新分配空间。Space is redistributed based on the value of the HorizontalAlignment and VerticalAlignment properties.

CurrentAndNext 1

对于水平 GridSplitter,将在为 GridSplitter 指定的行与该行下面的一行之间重新分配空间。For a horizontal GridSplitter, space is redistributed between the row that is specified for the GridSplitter and the next row that is below it. 对于垂直 GridSplitter,将在为 GridSplitter 指定的列与该列右侧的一列之间重新分配空间。For a vertical GridSplitter, space is redistributed between the column that is specified for the GridSplitter and the next column that is to the right.

PreviousAndCurrent 2

对于水平 GridSplitter,将在为 GridSplitter 指定的行与该行上面的一行之间重新分配空间。For a horizontal GridSplitter, space is redistributed between the row that is specified for the GridSplitter and the next row that is above it. 对于垂直 GridSplitter,将在为 GridSplitter 指定的列与该列左侧的一列之间重新分配空间。For a vertical GridSplitter, space is redistributed between the column that is specified for the GridSplitter and the next column that is to the left.

PreviousAndNext 3

对于水平 GridSplitter,将在为 GridSplitter 指定的行上面的各行与该行下面的各行之间重新分配空间。For a horizontal GridSplitter, space is redistributed between the rows that are above and below the row that is specified for the GridSplitter. 对于垂直 GridSplitter,将在为 GridSplitter 指定的列左侧的各列与该列右侧的各列之间重新分配空间。For a vertical GridSplitter, space is redistributed between the columns that are to the left and right of the column that is specified for the GridSplitter.

注解

此枚举用于设置GridSplitter.ResizeBehavior属性的值。This enumeration is used to set the value of the GridSplitter.ResizeBehavior property.

按如下所示ResizeBehavior确定BasedOnAlignment具有枚举值的属性的行为:The behavior of the ResizeBehavior property with the BasedOnAlignment enumeration value is determined as follows:

适用于

另请参阅