BugzillaInterface.StringArrayWidget.GetSelected C# (CSharp) Метод

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

public GetSelected ( ) : string[]
Результат string[]
        public string[] GetSelected()
        {
            TreePath[] selection = optionTreeView.Selection.GetSelectedRows();
            List<string> selected = new List<string>();
            foreach(TreePath path in selection)
            {

                // Find the index of the path and add the string corresponding to that index
                selected.Add(options[path.Indices[0]]);
            }

            return selected.ToArray();
        }