using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Collections; namespace HNWD.LatticeScreen.Server { internal static class TextProgramAlignList { private static Dictionary dic = new Dictionary(); static TextProgramAlignList() { dic.Add("LeftTop" , 0xE02); dic.Add("LeftCenter" , 0xE12); dic.Add("LeftBottom" , 0xE22); dic.Add("CenterTop" , 0xE42); dic.Add("CenterCenter" , 0xE52); dic.Add("CenterBottom" , 0xE62); dic.Add("BottomTop" , 0xE82); dic.Add("BottomCenter" , 0xE92); dic.Add("BottomBottom" , 0xEA2); } public static List GetList() { List l = new List(); l.Add(new TextProgramAlign() { AlignName_EN = "LeftTop", AlignName_CN = "水平左垂直上对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "LeftCenter", AlignName_CN = "水平左垂直中对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "LeftBottom", AlignName_CN = "水平左垂直下对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "CenterTop", AlignName_CN = "水平中垂直上对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "CenterCenter", AlignName_CN = "水平中垂直中对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "CenterBottom", AlignName_CN = "水平中垂直下对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "BottomTop", AlignName_CN = "水平右垂直上对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "BottomCenter", AlignName_CN = "水平右垂直中对齐" }); l.Add(new TextProgramAlign() { AlignName_EN = "BottomBottom", AlignName_CN = "水平右垂直下对齐" }); return l; } public static uint GetValue(string key) { return dic[key]; } } }