RemoveProperty() public static method

Removes the specified property from the property set.
public static RemoveProperty ( string tag ) : void
tag string name of the property
return void
示例#1
0
        private static void ClearStringSettings()
        {
            ArrayList keysToRemove = new ArrayList();

            Dictionary <int, SkinString> .Enumerator strEnumer = _skinStringSettings.GetEnumerator();
            SkinString strSetting;

            while (strEnumer.MoveNext())
            {
                strSetting = strEnumer.Current.Value;
                if (strSetting.Kind == Kind.PERSISTENT) // Keep transient settings
                {
                    GUIPropertyManager.RemoveProperty(strSetting.Name);
                    keysToRemove.Add(strEnumer.Current.Key);
                }
            }

            // Clear our dictionary.
            lock (_skinStringSettings)
            {
                foreach (int key in keysToRemove)
                {
                    _skinStringSettings.Remove(key);
                }
            }
        }
 /// <summary>
 /// Clears all properties identifying themes.
 /// </summary>
 public static void ClearSettings()
 {
     GUIPropertyManager.RemoveProperty("#skin.currenttheme");
     GUIPropertyManager.RemoveProperty("#skin.themes");
 }