Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PropertyGridControl.Tabs Property

Provides access to the collection of tabs available in the Office View.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

[ListBindable(false)]
[XtraSerializableProperty(true, true, true)]
[DXCategory("Layout")]
public TabCollection Tabs { get; }

#Property Value

Type Description
DevExpress.XtraVerticalGrid.TabCollection

A DevExpress.XtraVerticalGrid.TabCollection object specifying the collection of tabs available in the Office style.

#Remarks

The DevExpress.XtraVerticalGrid.TabCollection type specifies the collection of DevExpress.XtraVerticalGrid.Tab objects representing tabs. Each tab specifies:

  • FieldNames—names of the properties to include in the tab;
  • Caption—the tab caption;
  • ImageOptions—the tab glyph options;
using DevExpress.XtraVerticalGrid;

Tab appearanceTab = new Tab();
appearanceTab.Caption = "Appearance";
appearanceTab.UseCaption = false;
appearanceTab.ImageOptions.ImageUri.Uri = "Colors";
appearanceTab.Appearance.Options.UseImage = true;
appearanceTab.FieldNames.Add("BackColor");
appearanceTab.FieldNames.Add("BackgroungImage");
appearanceTab.FieldNames.Add("BackgroungImageLayout");
appearanceTab.FieldNames.Add("Cursor");
propertyGridControl1.Tabs.Add(appearanceTab);

Tab fontTab = new Tab();
fontTab.Caption = "Font";
fontTab.UseCaption = false;
fontTab.ImageOptions.ImageUri.Uri = "ChangeFontStyle";
fontTab.Appearance.Options.UseImage = true;
fontTab.FieldNames.Add("ForeColor");
fontTab.FieldNames.Add("FormBorderStyle");
fontTab.FieldNames.Add("RightToLeft");
fontTab.FieldNames.Add("RightToLeftLayout");
fontTab.FieldNames.Add("Text");
fontTab.FieldNames.Add("UseWaitCursor");
propertyGridControl1.Tabs.Add(fontTab);
See Also