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); }
public static int GetLineHeight(Gtk.TextView GtkTextView) { int y, height; GtkTextView.Buffer.Text = ""; GtkTextView.GetLineYrange(GtkTextView.Buffer.StartIter, out y, out height); return(height); }