Exemplo n.º 1
0
Arquivo: HtSpan.cs Projeto: fengqk/Art
		public HtSpan(HtSpan parent, Dictionary<String, String> attributes)
		{
			m_parent = parent;
			if (attributes != null)
			{
				m_attributes = new Dictionary<String, String>(attributes.Count, attributes.Comparer);
				foreach (var item in attributes)
					m_attributes[item.Key] = item.Value;
				m_id = this["id"];
			}
		}
Exemplo n.º 2
0
 public override void Draw(HtSpan span, string id, HtRect rect, HtColor color, string text, bool isEffect, Core.DrawTextEffect effect, HtColor effectColor, int effectAmount, Core.HtmlLink link, object userData)
 {
         Console.WriteLine("DrawText: {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}", 
             this, 
             id, 
             rect, 
             color, 
             text, 
             isEffect, 
             effect, 
             effectColor, 
             effectAmount, 
             link == null ? null : link.linkText, 
             userData);
 }