AnimatGuiCtrls.Controls.DataGridComboBox.GetValueText C# (CSharp) Method

GetValueText() public method

public GetValueText ( int index ) : string
index int
return string
        public string GetValueText(int index)
        {
            // Validate the index.
            if ((index < 0) && (index >= base.Items.Count))
                throw new IndexOutOfRangeException("Invalid index.");

            // Get the text.
            string	text			= string.Empty;
            int		memIndex		= -1;
            try {
                base.BeginUpdate();
                memIndex					= base.SelectedIndex;
                base.SelectedIndex	= index;
                text						= base.SelectedValue.ToString();
                base.SelectedIndex	= memIndex;
            } catch {
            } finally {
                base.EndUpdate();
            }

            return text;
        }