Contribution from Sebastien Pouliot
svn path=/trunk/gtk-sharp/; revision=38808
This commit is contained in:
parent
bd0222a8e4
commit
5d04249387
1 changed files with 11 additions and 2 deletions
|
@ -694,10 +694,19 @@
|
||||||
<param name="name">the name of the mark</param>
|
<param name="name">the name of the mark</param>
|
||||||
<param name="where">the new location for mark</param>
|
<param name="where">the new location for mark</param>
|
||||||
<remarks>
|
<remarks>
|
||||||
|
<para>It is possible to use built-in marks to implement a "Select All" method on a buffer (e.g. <see cref="M:Gtk.TextView.Buffer" />).</para>
|
||||||
<para>
|
<para>
|
||||||
see <see cref="M:Gtk.TextBuffer.MoveMark(Gtk.TextMark,Gtk.TextIter)" />
|
<example>
|
||||||
for more details.
|
<code lang="C#">
|
||||||
|
private void SelectAll (TextBuffer buffer)
|
||||||
|
{
|
||||||
|
buffer.MoveMark ("insert", buffer.StartIter);
|
||||||
|
buffer.MoveMark ("selection_bound", buffer.EndIter);
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</example>
|
||||||
</para>
|
</para>
|
||||||
|
<para>See <see cref="M:Gtk.TextBuffer.MoveMark(Gtk.TextMark,Gtk.TextIter)" /> for more details.</para>
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
|
Loading…
Add table
Reference in a new issue