AGS.Editor.PropertiesPanel.SelectTabInPropertyGrid C# (CSharp) Метод

SelectTabInPropertyGrid() публичный Метод

public SelectTabInPropertyGrid ( string tabName ) : bool
tabName string
Результат bool
        public bool SelectTabInPropertyGrid(string tabName)
        {
            int tabIndex = 0;
            foreach (System.Windows.Forms.Design.PropertyTab propertyTab in propertiesGrid.PropertyTabs)
            {
                if (propertyTab.TabName == tabName)
                {
                    if (propertyTab != propertiesGrid.SelectedTab)
                    {
                        Hacks.SetSelectedTabInPropertyGrid(propertiesGrid, tabIndex);
                    }
                    return true;
                }
                tabIndex++;
            }
            return false;
        }