using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace HNWD.LatticeScreen.Server { internal class BitmapProgramAlignList { private static Dictionary dic = new Dictionary(); static BitmapProgramAlignList() { dic.Add("LeftTop" , 0xE00); dic.Add("LeftCenter" , 0x10); dic.Add("LeftBottom" , 0x20); dic.Add("CenterTop" , 0x40); dic.Add("CenterCenter" , 0x50); dic.Add("CenterBottom" , 0x60); dic.Add("BottomTop" , 0x80); dic.Add("BottomCenter" , 0x90); dic.Add("BottomBottom" , 0xA0); } 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]; } } }