Ejemplo n.º 1
0
 public void Fill(ICellDataSource source)
 {
     cellView.Initialize(source);
     if (cellView.Markup != null)
     {
         AttributedStringValue = FormattedText.FromMarkup(cellView.Markup).ToAttributedString();
     }
     else
     {
         StringValue = cellView.Text ?? "";
     }
 }
Ejemplo n.º 2
0
        public void LoadData(TreeModel treeModel, TreeIter iter)
        {
            this.treeModel = treeModel;
            this.iter      = iter;
            view.Initialize(this);

            if (view.Markup != null)
            {
                FormattedText tx = FormattedText.FromMarkup(view.Markup);
                Text = tx.Text;
                var atts = new FastPangoAttrList();
                atts.AddAttributes(new TextIndexer(tx.Text), tx.Attributes);
                Attributes = new Pango.AttrList(atts.Handle);
                atts.Dispose();
            }
            else
            {
                Text = view.Text;
            }
            Editable = view.Editable;
        }