GroupControl Class
The panel with a title which can be aligned along the top, bottom, left or right edge.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.2.dll
Declaration
public class GroupControl :
PanelControl,
IGroupBoxButtonsPanelOwner,
IButtonsPanelOwner,
IButtonPanelControlAppearanceOwner,
IAppearanceOwner,
IToolTipControlClient,
IGroupStyleProvider,
ISupportImageDragDrop
Remarks
The GroupControl
is a container control that can be used to define groups of controls. It displays a frame around controls and allows you to display text and image within the header region.
Features include:
- Locate the caption along the left, right, top or bottom side of the group control, or hidden (GroupControl.CaptionLocation, GroupControl.ShowCaption).
- Display an image in the header (GroupControl.CaptionImage, GroupControl.CaptionImageLocation, GroupControl.CaptionImagePadding, GroupControl.CaptionImageUri, GroupControl.AllowGlyphSkinning).
- Display custom buttons in group header (GroupControl.CustomHeaderButtons, GroupControl.CustomHeaderButtonsLocation).
- Colorize the header and border in skinning paint schemes (GroupControl.AllowBorderColorBlending).
- Support for DX Skin Colors. You can use DX Skin Colors to specify the background color of group headers (GroupControl.AppearanceCaption.BorderColor).
Pre-built group styles (GroupControl.GroupStyle).
The GroupControl
supports both the look and feel and appearances technologies. The XtraScrollableControl.LookAndFeel and PanelControl.Appearance inherited properties allow the control’s look and feel and appearance settings to be accessed, respectively.
The GroupControl.AppearanceCaption property provides the appearance settings used to paint the GroupControl’s caption. The GroupControl also allows its caption to be painted manually. For this purpose, handle the GroupControl.CustomDrawCaption event.