RichTextKit/doc/caret.page

17 строки
846 B
Plaintext
Исходник Обычный вид История

2019-08-03 18:02:45 +03:00
---
title: "Caret Information"
isMarkdown: false
---
<h1 id="caret-information">Caret Information</h1>
<p>The caret is the flashing cursor that's typically shown in a text editor
to show the current insert position. Although RichTextKit doesn't provide
any editing capabilities, it does include the ability to calculate where
the caret should be displayed.</p>
<p>To determine where the caret should be displayed, call the
2020-05-24 12:26:12 +03:00
<a href="./ref/Topten.RichTextKit.RichString.GetCaretInfo">RichString.GetCaretInfo</a> or
<a href="./ref/Topten.RichTextKit.TextBlock.GetCaretInfo">TextBlock.GetCaretInfo</a>
2019-08-03 18:02:45 +03:00
method which will return a <a href="./ref/Topten.RichTextKit.CaretInfo">CaretInfo</a> structure describing
where the caret should be drawn, the shape of the caret (sloped for italic) and
other useful details about the current caret position.</p>