public int getZOrderForKey(String key) { for (int i = 0; i < m_zorder.Length; i++) { if (m_zorder[i] == key) { return i; } } return -1; }