Carbon


TXNGetSelection

Header: MacTextEditor.h Carbon status: Supported

Get the absolute offsets of the current selection.

void TXNGetSelection (
    TXNObject iTXNObject, 
    TXNOffset *oStartOffset, 
    TXNOffset *oEndOffset
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object for the current text area.

oStartOffset

A pointer to a variable of type TXNOffset. On return, the variable specifies the absolute beginning of the current selection.

oEndOffset

A pointer to a variable of type TXNOffset. On return, the variable specifies the end of current selection.

DISCUSSION

Offsets in MLTE are always character offsets. Each embedded graphics or sound object is counted as one character.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)