跳轉到內容

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."
]
華夏公益教科書