Rebol 程式設計/offset-to-caret
外觀
OFFSET-TO-CARET face offset
返回對應於偏移對的面部文字中的偏移量。
OFFSET-TO-CARET 是一個本機值。
- face -- 包含文字的面部。 (型別:物件)
- offset -- 相對於面的 XY 偏移量。 (型別:對)
offset-to-caret: native[
{Returns the offset in the face's text corresponding to the offset pair.}
face [object!] "The face containing the text."
offset [pair!] "The XY offset relative to the face."
]