Rebol 程式設計/caret-to-offset
外觀
CARET-TO-OFFSET face offset
返回相對於字元位置的起始位置的偏移位置。
CARET-TO-OFFSET 是一個本機值。
- face -- 包含文字的面。 (型別:物件)
- offset -- 文字中的偏移量。 (型別:任何字串)
caret-to-offset: native[
{Returns the offset position relative to the face of the character position.}
face [object!] "The face containing the text."
offset [any-string!] "The offset in the text."
]