gtk-sharp2.4.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Text buffer iteratorSystem.ValueTypeFieldGtk.TextIterReturns an empty MethodGtk.TextIterInternal method
a a new This is an internal method and should not be used by user code.MethodSystem.BooleanMoves backward to the next toggle (on or off) of the tag, or to the next toggle of any tag if tag is .
a or whether we found a tag toggle before iterIf no matching tag toggles are found, returns , otherwise . Does not return toggles located at iter, only toggles before iter. Sets iter to the location of the toggle, or the start of the buffer if no toggle is found.MethodGtk.TextIterCreates a dynamically-allocated copy of an iterator.a MethodSystem.BooleanMoves backward to the previous word start. if iter moved and is not the end iterator(If iter is currently on a word start, moves backward to the next one after that.) Word breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).MethodSystem.BooleanMoves forward to the next sentence end. if iter moved and is not the end iteratorIf iter is at the end of a sentence, moves to the next end of sentence. Sentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).MethodSystem.VoidSwaps the value of first and second if second comes before first in the buffer.
another That is, ensures that first and second are in sequence. Most text buffer functions that take a range call this automatically on your behalf, so there's no real reason to call it yourself in those cases. There are some exceptions, such as , that expect a pre-sorted range.MethodSystem.BooleanMoves back cursor positions.
number of positions to move
if we moved and the new position is dereferenceableMethodSystem.BooleanMoves the iterator backward one linetrue if the operation succeeded.Returns if iter could be moved; i.e. if iter was at character offset 0, this function returns . Therefore if iter was already on line 0, but not at the start of the line, iter is snapped to the start of the line and the function returns . (Note that this implies that in a loop calling this function, the line number may not change on every iteration, if your first iteration is on line 0.)MethodSystem.StringLike , but invisible text is not included.
iterator at end of range
slice of text from the buffer Invisible text is usually invisible because a with the "invisible" attribute turned on has been applied to it.MethodSystem.StringReturns the text in the given range.
iterator at end of a range
slice of text from the bufferA "slice" is an array of characters encoded in UTF-8 format, including the Unicode "unknown" character 0xFFFC for iterable non-character elements in the buffer, such as images. Because images are encoded in the slice, byte and character offsets in the returned array will correspond to byte offsets in the text buffer. Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a pixbuf or widget is in the buffer.MethodSystem.BooleanMoves forward to the next word end. if iter moved and is not the end iterator(If iter is currently on a word end, moves forward to the next one after that.) Word breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).MethodSystem.BooleanAdvances the iterator, calling on each character.
A to call on each character.
search limit, or for none
whether a match was foundIf pred returns , returns and stops scanning. If pred never returns , iter is set to limit if limit is non-, otherwise to the end iterator.MethodSystem.BooleanObsolete. Replaced by .
A to call on each character.
Ignored
search limit, or for none
whether a match was foundMethodSystem.BooleanDetermines whether iter ends a natural-language word. if iter is at the end of a wordWord breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).MethodSystem.BooleanReturns whether the character at iter is within an editable region of text. if text is editable by default
whether iter is inside an editable range
Non-editable text is "locked" and cannot be changed by the user via . This function is simply a convenience wrapper around . If no tags applied to this text effect editability, will be returned.
You do not want to use this function to decide whether text can be inserted at iter, because for insertion you do not want to know whether the char at iter is inside an editable range, you want to know whether a new character inserted at iter would be inside an editable range. Use to handle this case.
MethodSystem.BooleanMoves this iterator forward by one character offset.A boolean: if the iterator moved and is dereferenceable.Note that images embedded in the buffer occupy 1 character slot, so this may actually move onto an image instead of a character, if you have images in your buffer. If this object is the end iterator or one character before it, the object will now point at the end iterator, and return for convenience when writing loops.MethodSystem.BooleanMoves the iterator back a number of lines.
number of lines to move backwards.
true if the operation succeeded.Moves count lines backward, if possible (if count would move past the start or end of the buffer, moves to the start or end of the buffer). The return value indicates whether the iterator moved onto a dereferenceable position; if the iterator didn't move, or moved onto the end iterator, then is returned. If count is 0, the function does nothing and returns . If count is negative, moves forward by 0 - count lines.MethodSystem.BooleanReturns true if the iterator is at the end of a line.true if the iterator is at the end of a line.Returns if iter points to the start of the paragraph delimiter characters for a line (delimiters will be either a newline, a carriage return, a carriage return followed by a newline, or a Unicode paragraph separator character). Note that an iterator pointing to the \n of a \r\n pair will not be counted as the end of a line, the line ends before the \r. The end iterator is considered to be at the end of a line, even though there are no paragraph delimiter chars there.MethodSystem.BooleanCalls up to times, or until it returns .
number of sentences to move
if iter moved and is not the end iteratorIf is negative, moves forward instead of backward.MethodSystem.VoidMoves iter forward to the "end iterator," which points one past the last valid character in the buffer.MethodSystem.BooleanSame as , but goes backward from iter.
A to call on each character.
search limit, or for none
whether a match was foundMethodSystem.BooleanObsolete. Replaced by .
A to call on each character.
Ignored
search limit, or for none
whether a match was foundMethodSystem.BooleanMoves up cursor positions.
number of positions to move
if we moved and the new position is dereferenceableSee for details.MethodSystem.BooleanTests whether two iterators are equal, using the fastest possible mechanism.
another if the iterators point to the same place in the bufferThis function is very fast; you can expect it to perform better than e.g. getting the character offset for each iterator and comparing the offsets yourself. Also, it's a bit faster than .MethodSystem.Boolean whether tag is either toggled on or off at iter
a or whether tag is toggled on or off at iterMethodSystem.BooleanDetermines whether iter begins a sentence. if iter is at the start of a sentence.Sentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).MethodSystem.BooleanMoves forward to the next toggle (on or off) of the tag, or to the next toggle of any tag if tag is .
a or whether we found a tag toggle after iterIf no matching tag toggles are found, returns , otherwise . Does not return toggles located at iter, only toggles after iter. Sets iter to the location of the toggle, or to the end of the buffer if no toggle is found.MethodSystem.BooleanReturns if iter begins a paragraph. whether iter begins a lineMethodSystem.BooleanLike , but moves backward. if we movedMethodSystem.BooleanComputes the effect of any tags applied to this spot in the text.
a s
if values was modified
The values parameter should be initialized to the default settings you wish to use if no tags are in effect. You would typically obtain the defaults from .
will modify values, applying the effects of any tags present at iter. If any tags affected values, the function returns .
MethodSystem.StringReturns text in the given range.
iterator at end of a range
the string from the bufferIf the range contains non-text elements such as images, the character and byte offsets in the returned string will not correspond to character and byte offsets in the buffer. If you want offsets to correspond, see .MethodSystem.BooleanMoves iter forward by a single cursor position. if we moved and the new position is dereferenceableCursor positions are (unsurprisingly) positions where the cursor can appear. Perhaps surprisingly, there may not be a cursor position between all characters. The most common example for European languages would be a carriage return/newline sequence. For some Unicode characters, the equivalent of say the letter "a" with an accent mark will be represented as two characters, first the letter then a "combining mark" that causes the accent to be rendered; so the cursor cannot go between those two characters.MethodSystem.BooleanMoves count lines forward, if possible (if count would move past the start or end of the buffer, moves to the start or end of the buffer).
number of lines to move forward
whether iter moved and is dereferenceableThe return value indicates whether the iterator moved onto a dereferenceable position; if the iterator didn't move, or moved onto the end iterator, then is returned. If count is 0, the function does nothing and returns . If count is negative, moves backward by 0 - count lines.MethodSystem.BooleanMoves iter to the start of the next line.A boolean; whether the iterator is dereferenceableReturns if there was a next line to move to, and if iter was simply moved to the end of the buffer and is now not dereferenceable, or if iter was already at the end of the buffer.MethodSystem.BooleanMoves the iterator back a number of characters.
number of characters to move backwards.
true if the operation succeededMoves count characters backward, if possible (if count would move past the start or end of the buffer, moves to the start or end of the buffer). The return value indicates whether the iterator moved onto a dereferenceable position; if the iterator didn't move, or moved onto the end iterator, then is returned. If count is 0, the function does nothing and returns .MethodSystem.BooleanReturns if iter is within a range tagged with tag.
a whether iter is tagged with tagMethodSystem.BooleanMoves backward to the previous sentence start; if iter is already at the start of a sentence, moves backward to the next one. if iter moved and is not the end iteratorSentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).MethodSystem.BooleanDetermines whether iter begins a natural-language word. if iter is at the start of a wordWord breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).MethodSystem.BooleanReturns if tag is toggled on at exactly this point.
a or whether iter is the start of a range tagged with tagIf tag is , returns if any tag is toggled on at this point. Note that the returns if iter is the start of the tagged range; tells you whether an iterator is within a tagged range.MethodSystem.StringLike , but invisible text is not included.
iterator at end of range
string containing visible text in the rangeInvisible text is usually invisible because a with the "invisible" attribute turned on has been applied to it.MethodSystem.BooleanMoves the iterator to point to the paragraph delimiter characters, which will be either a newline, a carriage return, a carriage return/newline in sequence, or the Unicode paragraph separator character. if we moved and the new location is not the end iterator If the iterator is already at the paragraph delimiter characters, moves to the paragraph delimiter characters for the next line. If iter is on the last line in the buffer, which does not end in paragraph delimiters, moves to the end iterator (end of the last line), and returns .MethodSystem.BooleanDetermines whether iter ends a sentence. if iter is at the end of a sentence.Sentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).MethodSystem.BooleanCalls times (or until it returns ).
number of sentences to move
if iter moved and is not the end iteratorIf is negative, moves backward instead of forward.MethodSystem.BooleanDetermines whether iter is inside a sentence (as opposed to in between two sentences, e.g. after a period and before the first letter of the next sentence). if iter is inside a sentence.Sentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).MethodSystem.BooleanCalls up to times.
number of times to move
if iter moved and is not the end iteratorMethodSystem.BooleanMoves the iterator back one charactertrue if the operation succeededReturns if movement was possible; if iter was the first in the buffer (character offset 0), this returns for convenience when writing loops.MethodSystem.BooleanReturns if tag is toggled off at exactly this point.
a or whether iter is the end of a range tagged with tagIf tag is , returns if any tag is toggled off at this point. Note that the returns if iter is the end of the tagged range; tells you whether an iterator is within a tagged range.MethodSystem.BooleanMoves count characters if possible (if count would move past the start or end of the buffer, moves to the start or end of the buffer).
number of characters to move, may be negative
whether iter moved and is dereferenceableThe return value indicates whether the new position of iter is different from its original position, and dereferenceable (the last iterator in the buffer is not dereferenceable). If count is 0, the function does nothing and returns .MethodSystem.BooleanConsidering the default editability of the buffer, and tags that affect editability, determines whether text inserted at iter would be editable. if text is editable by default
whether text inserted at iter would be editableIf text inserted at iter would be editable then the user should be allowed to insert text at iter. uses this function to decide whether insertions are allowed at a given position.MethodSystem.Int32A qsort()-style function that returns negative if lhs is less than rhs, positive if lhs is greater than rhs, and 0 if they are equal.
another -1 if lhs is less than rhs, 1 if lhs is greater, 0 if they are equalOrdering is in character offset order, i.e. the first character in the buffer is less than the second character in the buffer.MethodSystem.BooleanDetermines whether iter is inside a natural-language word (as opposed to say inside some whitespace). if iter is inside a wordWord breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).MethodSystem.BooleanChecks whether iter falls in the range (start, end).
start of range
end of range
if iter is in the range and must be in ascending order.MethodSystem.BooleanCalls up to times.
number of times to move
if iter moved and is not the end iteratorPropertySystem.Int32Returns the number of bytes from the start of the line to the given iter, not counting bytes that are invisible due to tags with the "invisible" flag toggled on. byte index of iter with respect to the start of the linePropertyGtk.TextChildAnchorIf the location at iter contains a child anchor, the anchor is returned. Otherwise, is returned. the anchor at iterPropertySystem.Int32Number of characters in the TextIter's line.Returns the number of characters in the TextIter's current line, including the paragraph delimiters.None.PropertySystem.Int32Line number the iterator is currently on.The line number the iterator is currently on.Lines in a are numbered beginning with 0 for the first line in the buffer.PropertySystem.Int32Returns the number of bytes in the line containing iter, including the paragraph delimiters. number of bytes in the linePropertySystem.StringCharacter the TextIter points to.a 1 character length string container the character pointed to by the TextIterEven though this property returns a string, it will never hold more than a single character.PropertySystem.Int32Manipulates the offset from the start of the buffer.Returns the offset of the iter from the start of the buffer.None.PropertyGdk.Pixbufreturn the pixbuf at this iter, if it is one. the pixbuf at iterIf the element at iter is a , the Pixbuf is returned. Otherwise, is returned.PropertyPango.LanguageA convenience wrapper around , which returns the language in effect at iter. language in effect at iterIf no tags affecting language apply to iter, the return value is identical to that of .PropertySystem.Int32Returns the byte index of the iterator, counting from the start of a newline-terminated line. distance from start of line, in bytesRemember that encodes text in UTF-8, and that characters can require a variable number of bytes to represent.PropertySystem.Int32Returns the character offset of the iterator, counting from the start of a newline-terminated line. offset from start of lineThe first character on the line has offset 0.PropertySystem.Int32Returns the offset in characters from the start of the line to the given iter, not counting characters that are invisible due to tags with the "invisible" flag toggled on. offset in visible characters from the start of the linePropertyGtk.TextBufferObtains the buffer the iter is incontaining bufferMethodSystem.BooleanSame as , but moves backward.
search string
bitmask of flags affecting the search
return location for start of match, or
return location for end of match, or
location of last possible match_start, or for start of buffer
whether a match was foundMethodSystem.BooleanSearches forward for .
a search string
flags affecting how the search is done
return location for start of match, or
return location for end of match, or
bound for the search, or for the end of the buffer
whether a match was found
Any match is returned by setting to the first character of the match and to the first character after the match. The search will not continue past limit. Note that a search is a linear or O(n) operation, so you may wish to use limit to avoid locking up your UI on large buffers.
If the GTK_TEXT_SEARCH_VISIBLE_ONLY flag is present, the match may have invisible text interspersed in str. i.e. str will be a possibly-noncontiguous subsequence of the matched range. similarly, if you specify GTK_TEXT_SEARCH_TEXT_ONLY, the match may have pixbufs or child widgets mixed inside the matched range. If these flags are not given, the match must be exact; the special 0xFFFC character in str will match embedded pixbufs or child widgets.
PropertySystem.BooleanReturns true if the iterator is at the end of the parent true if the iterator is equal to Buffer.EndIterThe most efficient way to check whether an iterator is the end iterator.PropertySystem.BooleanReturns if iter is the first iterator in the buffer, that is if iter has a character offset of 0. whether iter is the first in the bufferPropertySystem.Booleanreturns true if the iter is at the careta returns true if this iterator equals the iterator returned by PropertyGLib.GTypeGType Property.a Returns the native value for .PropertyGtk.TextMark[]Returns an array of at this location.a Because marks are not iterable (they do not take up any "space" in the buffer, they are just marks in between iterable locations), multiple marks can exist in the same place. The returned list is not in any meaningful order.PropertyGtk.TextTag[]Returns an array of tags that apply to iter, in ascending order of priority (highest-priority tags are last).a MethodGtk.TextTag[]Returns an array of that are toggled on or off at this point.
a tags toggled at this point(If toggled_on is , the list contains tags that are toggled on.) If a tag is toggled on at iter, then some non-empty range of characters following iter has that tag applied to it. If a tag is toggled off, then some non-empty range following iter does not have the tag applied to it.MethodSystem.BooleanMoves up to visible cursor positions.
a a , true if the iter was moved and is in a dereferenceable position.
See for details.
MethodSystem.BooleanCalls up to times.
a a , true if the iterator moved and is not at the end of the text.MethodSystem.BooleanMoves the iterator forward to the next visible cursor position.a See for details.MethodSystem.BooleanMoves backward up to visible cursor positions.
a a , true if the cursor was moved and is in a dereferenceable position.See for details.MethodSystem.Boolean
Moves forward to the next visible word end.
(If the iterator is currently on a
word end, moves forward to the next one after that.)
a , true if the iterator moved and is not at the end.
Word breaks are determined by Pango and should be correct for nearly any
language (if not, the correct fix would be to the Pango word break
algorithms).
MethodSystem.BooleanMoves the iterator back to the previous visible cursor position.
a , true if the iter moved and the new position is dereferenceableSee for details.MethodSystem.Boolean
Moves forward to the next visible word end. (If the
iterator is currently on a word end, moves forward to the next
one after that.)
a a , true if the iterator moved and is not at the end.
Word breaks are determined by Pango and should be correct for nearly any
language (if not, the correct fix would be to the Pango word break
algorithms).
MethodSystem.Boolean
Moves backward to the previous visible word start. (If the iterator is currently
on a word start, moves backward to the next one after that.)
a
Word breaks are determined by Pango and should be correct for nearly any
language (if not, the correct fix would be to the Pango word break
algorithms).
MethodGLib.Value
To be added.
To be added.To be added.To be added.MethodGtk.TextIter
To be added.
To be added.To be added.To be added.