Esempio n. 1
0
        public void Append(CharInfo ci, Color?color)
        {
            var render = new GlyphRender(ci, this, color);

            _glyphRenders.Add(render);

            _dirty = true;
            _text += ci.Value;
        }
Esempio n. 2
0
        public int?GetIndexByGlyphRender(GlyphRender glyphRender)
        {
            var strings = Strings;

            var ch = 0;

            foreach (var si in strings)
            {
                foreach (var gr in si.GlyphRenders)
                {
                    if (gr == glyphRender)
                    {
                        return(ch);
                    }

                    ++ch;
                }
            }

            return(null);
        }