Skip to main content

DataLayoutControl.VerticalGroupMark Property

Specifies the symbol that indicates that children within the current DataLayoutControl group will be arranged vertically.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v24.2.dll

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public static char VerticalGroupMark { get; set; }

Property Value

Type Description
Char

A Char value that indicates that children within the current DataLayoutControl group will be arranged vertically.

Remarks

To arrange items within a group horizontally or vertically, by default, you have to add the ‘-‘ or the ‘|’ character respectively before the group’s closing character when defining group descriptions via the DisplayAttribute.GroupName attribute. The code below illustrates the example.

//Two items within a borderless group are arranged vertically
[Display(GroupName = "<Name|>", Name = "Last name")]
public string LastName { get; set; }
[Display(GroupName = "<Name|>", Name = "First name", Order = 0)]
public string FirstName { get; set; }

//Two items within a borderless group are arranged horizontally
[Display(GroupName = "<Name->", Name = "Last name")]
public string LastName { get; set; }
[Display(GroupName = "<Name->", Name = "First name", Order = 0)]
public string FirstName { get; set; }

To implement your own custom syntax and override the default vertical or horizontal alignment characters, use the static VerticalGroupMark or DataLayoutControl.HorizontalGroupMark properties respectively.

See Also