Ejemplo n.º 1
0
 /// <summary>
 /// Gets the index of the item with the specified locale name.
 /// </summary>
 /// <param name="localeName">Locale name to look for.</param>
 /// <param name="index">Receives the zero-based index of the locale name/string pair.</param>
 /// <returns>TRUE if the locale name exists or FALSE if not.</returns>
 public bool FindLocaleName(
     string localeName,
     [Out] out uint index)
 {
     if (_localizedStrings == null)
     {
         index = 0;
         return(false);
     }
     else
     {
         bool exists          = false;
         uint localeNameIndex = 0;
         _localizedStrings.FindLocaleName(
             localeName,
             out localeNameIndex,
             out exists
             );
         index = localeNameIndex;
         return(!!exists);
     }
 }