Skip to main content

DataLayoutControl.HorizontalGroupMark Property

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

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public static char HorizontalGroupMark { get; set; }

Property Value

Type Description
Char

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

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 DataLayoutControl.VerticalGroupMark or HorizontalGroupMark properties respectively.

See Also