Rebol Programming/caret-to-offset

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:

[edit | edit source]
CARET-TO-OFFSET face offset 

DESCRIPTION:

[edit | edit source]

Returns the offset position relative to the face of the character position.

CARET-TO-OFFSET is a native value.

ARGUMENTS

[edit | edit source]
  • face -- The face containing the text. (Type: object)
  • offset -- The offset in the text. (Type: any-string)

SOURCE CODE

[edit | edit source]
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."
]