Carbon


TXNGetLineCount

Header: MacTextEditor.h Carbon status: Under Evaluation

Gets the total number of lines in a text object.

OSStatus TXNGetLineCount (
    TXNObject iTXNObject, 
    UInt32 *oLineTotal
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object that identifies the document whose line count you want to get.

oLineTotal

On return, a pointer to the number of lines in the text object.

function result

A result code. TXNGetLineCount can also return ParamErr.

AVAILABILITY

Under evaluation for Carbon. Available in Carbon 1.1 and later when running Mac OS 8.1 or later.


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