CssStyleCollection.cs 687 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // System.Web.UI.CssStyleCollection.cs
  3. //
  4. // Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. //
  8. using System;
  9. using System.Collections;
  10. namespace System.Web.UI {
  11. public sealed class CssStyleCollection
  12. {
  13. Hashtable list = new Hashtable ();
  14. public int Count {
  15. get { return list.Count; }
  16. }
  17. public string this [string key] {
  18. get { return list [key] as string; }
  19. set { list [key] = value; }
  20. }
  21. public ICollection Keys {
  22. get { return list.Keys; }
  23. }
  24. public void Add (string key, string value)
  25. {
  26. list.Add (key, value);
  27. }
  28. public void Clear ()
  29. {
  30. list.Clear ();
  31. }
  32. public void Remove (string key)
  33. {
  34. list.Remove (key);
  35. }
  36. }
  37. }