PropertyGridControl.Tabs Property

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

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

[ListBindable(false)]
[XtraSerializableProperty(true, true, true)]
[DXCategory("Layout")]
public TabCollection Tabs { get; }
<ListBindable(False)>
<XtraSerializableProperty(True, True, True)>
<DXCategory("Layout")>
Public ReadOnly Property Tabs As TabCollection

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