Rebol 编程/offset-to-caret
外观
< Rebol 编程
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."
]