Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Displaying and Scrolling Text


TEDelete

The TEDelete procedure removes the selected range of text from the text of the designated edit record and redraws the remaining text as necessary.

PROCEDURE TEDelete (hTE: TEHandle); 
hTE
A handle to the edit record containing the text to be deleted.
DESCRIPTION
When the TEDelete procedure deletes a selected range of text, it does not transfer the text to either the private scrap or the Scrap Manager's desk scrap.

For multistyled records, when you use TEDelete to delete a selected range of text, the associated character attributes are saved in the null scrap to be applied to characters entered after the text is deleted. When the user clicks in some other area of the text, the character attributes are removed from the null scrap. You can use TEDelete to implement the Clear command. The TEDelete procedure recalculates line starts and line heights.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996