Example #1
0
        public static TextAlignment ToEto(this Gtk.Justification justification)
        {
            switch (justification)
            {
            case Gtk.Justification.Left:
                return(TextAlignment.Left);

            case Gtk.Justification.Right:
                return(TextAlignment.Right);

            case Gtk.Justification.Center:
                return(TextAlignment.Center);

            default:
                throw new NotSupportedException();
            }
        }
Example #2
0
        public static HorizontalAlign ToEto(this Gtk.Justification justification)
        {
            switch (justification)
            {
            case Gtk.Justification.Left:
                return(HorizontalAlign.Left);

            case Gtk.Justification.Right:
                return(HorizontalAlign.Right);

            case Gtk.Justification.Center:
                return(HorizontalAlign.Center);

            default:
                throw new NotSupportedException();
            }
        }