private decimal Add_to(string Name, string Btext, string Rtext, decimal x, decimal y, decimal w, decimal h, decimal pts = 8) { UltraMapper.Mapper mapper = new UltraMapper.Mapper(); TextSpan S = null; Dymodkl.TextObject Newto = mapper.Map(Dlab.GetRto()); Newto.Name = Name; Newto.ObjectLayout.DPOINT.X = x.ToString(); Newto.ObjectLayout.DPOINT.Y = y.ToString(); Newto.ObjectLayout.Size.Width = w.ToString(); Newto.ObjectLayout.Size.Height = h.ToString(); if (Newto.FMTTEXT.LTSS.Count > 0) { Newto.FMTTEXT.LTSS.Clear(); } Newto.FMTTEXT.LTSS.Add(new LineTextSpan()); if (!string.IsNullOrEmpty(Btext)) { S = new TextSpan { FONT = mapper.Map(Dlab.GetRfont()) }; S.FONT.FontSize = pts.ToString(); S.FONT.IsBold = "true"; S.Text = Btext; Newto.FMTTEXT.LTSS[0].TSPANS.Add(S); } if (!string.IsNullOrEmpty(Rtext)) { S = new TextSpan { FONT = mapper.Map(Dlab.GetRfont()) }; S.FONT.FontSize = pts.ToString(); S.FONT.IsBold = "false"; S.Text = Rtext; Newto.FMTTEXT.LTSS[0].TSPANS.Add(S); } Lt.Add(Newto); return(y + h); }
public AzureTableRole() { base.PartitionKey = "Roles"; mapper = new UltraMapper.Mapper(UltramapperConfiguration.Get()); }