public MultiLineTextTool (IDrawingEditor editor, MultiLineTextFigure fig, ITool dt): base (editor, fig, dt) {	
			_textview = new Gtk.TextView ();
			_textview.Buffer.Changed += new System.EventHandler (ChangedHandler);
			_textview.ModifyFont (fig.PangoLayout.FontDescription.Copy ());
			_textview.RightMargin = 5;
			_textview.Justification = ConvertJustificaton ();
		}
Beispiel #2
0
        public UseCaseFigure()
            : base()
        {
            FillColor = new Cairo.Color(0.8, 0.8, 1.0, 0.8);

            _text = new MultiLineTextFigure("Use Case");

            _text.TextChanged += delegate(object sender, EventArgs args) {
                Resize();
            };

            _text.FontAlignment = Pango.Alignment.Center;
            _text.Padding = 10.0;
        }