op.deleteLine
| Syntax |
op.deleteLine ()
|
| Params |
None required
|
| Action |
Deletes the line on which the bar cursor is presently positioned, along with all subordinate subheads.
|
| Returns |
True
|
| Examples |
In examples.Sample Outline 1, put the bar cursor on the heading "Summit 2" and then execute:
op.deleteLine ()
» true
Summit 2 and all of its subheads will be deleted. Select the outline window and undo this operation.
In examples.Sample Outline 2, put the bar cursor on the top line, "Sample Outline 2, Summit" and then execute:
op.deleteLine ()
» true
The entire outline is deleted because you deleted the only summit in this outline. Select the outline window and undo this operation.
|
| Notes |
See the discussion at the beginning of the Outline Verbs chapter in the UserTalk Reference Guide regarding the positioning of the bar cursor in Frontier outlines.
This verb is similar to editMenu.clear. The only difference is that this verb always deletes the headline, while editMenu.clear is sensitive to whether or not the headline is in edit mode with a text selection. If so, it deletes the selected text, not
the headline itself.
|
| See Also |
op.deleteSubs
op.setCursor
|
|