TextProgramAlignList.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Collections;
  7. namespace HNWD.LatticeScreen.Server
  8. {
  9. internal static class TextProgramAlignList
  10. {
  11. private static Dictionary<string, uint> dic = new Dictionary<string, uint>();
  12. static TextProgramAlignList()
  13. {
  14. dic.Add("LeftTop" , 0xE02);
  15. dic.Add("LeftCenter" , 0xE12);
  16. dic.Add("LeftBottom" , 0xE22);
  17. dic.Add("CenterTop" , 0xE42);
  18. dic.Add("CenterCenter" , 0xE52);
  19. dic.Add("CenterBottom" , 0xE62);
  20. dic.Add("BottomTop" , 0xE82);
  21. dic.Add("BottomCenter" , 0xE92);
  22. dic.Add("BottomBottom" , 0xEA2);
  23. }
  24. public static List<TextProgramAlign> GetList()
  25. {
  26. List<TextProgramAlign> l = new List<TextProgramAlign>();
  27. l.Add(new TextProgramAlign() { AlignName_EN = "LeftTop", AlignName_CN = "水平左垂直上对齐" });
  28. l.Add(new TextProgramAlign() { AlignName_EN = "LeftCenter", AlignName_CN = "水平左垂直中对齐" });
  29. l.Add(new TextProgramAlign() { AlignName_EN = "LeftBottom", AlignName_CN = "水平左垂直下对齐" });
  30. l.Add(new TextProgramAlign() { AlignName_EN = "CenterTop", AlignName_CN = "水平中垂直上对齐" });
  31. l.Add(new TextProgramAlign() { AlignName_EN = "CenterCenter", AlignName_CN = "水平中垂直中对齐" });
  32. l.Add(new TextProgramAlign() { AlignName_EN = "CenterBottom", AlignName_CN = "水平中垂直下对齐" });
  33. l.Add(new TextProgramAlign() { AlignName_EN = "BottomTop", AlignName_CN = "水平右垂直上对齐" });
  34. l.Add(new TextProgramAlign() { AlignName_EN = "BottomCenter", AlignName_CN = "水平右垂直中对齐" });
  35. l.Add(new TextProgramAlign() { AlignName_EN = "BottomBottom", AlignName_CN = "水平右垂直下对齐" });
  36. return l;
  37. }
  38. public static uint GetValue(string key)
  39. {
  40. return dic[key];
  41. }
  42. }
  43. }