Back to Devexpress

PropertyGridControl.Tabs Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-propertygridcontrol-1513ed7d.md

latest3.8 KB
Original Source

PropertyGridControl.Tabs Property

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

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
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;

  • C#

  • VB.NET

csharp
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);
vb
Imports DevExpress.XtraVerticalGrid

Dim appearanceTab As Tab = 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)

Dim fontTab As Tab = 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

Office View

PropertyGridControl Class

PropertyGridControl Members

DevExpress.XtraVerticalGrid Namespace