Exemplo n.º 1
0
        /// <summary> Constructor. </summary>
        /// <param name="root"> The root view that this TextBox is ultimately a part of. </param>
        /// <param name="block"> The block that this view is for. </param>
        protected internal BaseTextBlockView(DocumentEditorContextView root, TextBlock block)
        {
            _root      = root;
            _block     = block;
            _renderer  = new CustomStringRenderer(this, block);
            _block.Tag = this;

            _block.SubscribeListener(this);

            TextBlockChanged(null, _block.Content);

            RecreateText();
        }
 public TextLineRender(CustomStringRenderer owner, int index)
 {
     _owner = owner;
     _index = index;
 }