WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsITextScroll

IID:067B28A0-877F-11d3-AF7E-00A024FFC08C
Inherits From:nsISupports

The nsITextScroll is an interface that can be implemented by a control that supports text scrolling.

This interface is implemented by the following components:


Methods

void scrollByLines ( PRInt32 numLines ) void scrollByPages ( PRInt32 numPages )

void scrollByLines ( PRInt32 numLines )

Scroll the view up or down by numLines lines. positive values move down in the view. Prevents scrolling off the end of the view.

Arguments:
numLines: number of lines to scroll the view by

void scrollByPages ( PRInt32 numPages )

Scroll the view up or down by numPages pages. a page is considered to be the amount displayed by the clip view. positive values move down in the view. Prevents scrolling off the end of the view.

Arguments:
numPages: number of pages to scroll the view by

Reference documentation is generated from Mozilla's source.