Пример #1
0
    public static int GetLineCount(Gtk.TextView GtkTextView, int LineHeight)
    {
        int y, height;

        GtkTextView.GetLineYrange(GtkTextView.Buffer.EndIter, out y, out height);
        return((y + height) / LineHeight);
    }
Пример #2
0
    public static int GetLineHeight(Gtk.TextView GtkTextView)
    {
        int y, height;

        GtkTextView.Buffer.Text = "";
        GtkTextView.GetLineYrange(GtkTextView.Buffer.StartIter, out y, out height);
        return(height);
    }