TreeIter iter1 = store.GetIterFirst(); TreeIter iter2 = store.GetIterFirst(); // Check if iter1 and iter2 point to the same row if (iter1.Equals(iter2)) { // Do something }
bool doRowsMatch(TreeIter iter1, TreeIter iter2) { // Check if iter1 and iter2 point to the same row return iter1.Equals(iter2); }In this example, a method is created that takes two TreeIter parameters. The method uses TreeIter Equals to check if they point to the same row and returns a boolean. The GtkSharp package library includes the Gtk namespace, which provides a set of graphical user interface elements, such as TreeView, TreeStore, and TreeIter.