nsISelection2
| IID: | b515878d-3b06-433b-bc9e-5c53d2fa3eff |
| Inherits From: | nsISelection |
Methods
void GetRangesForInterval ( nsIDOMNode beginNode , PRInt32 beginOffset , nsIDOMNode endNode , PRInt32 endOffset , PRBool allowAdjacent , out PRUint32 resultCount , out nsIDOMRange results )
[noscript] void GetRangesForIntervalCOMArray ( nsIDOMNode beginNode , PRInt32 beginOffset , nsIDOMNode endNode , PRInt32 endOffset , PRBool allowAdjacent , RangeArray* results )
void scrollIntoView ( PRInt16 region , PRBool isSynchronous , PRInt16 VPercent , PRInt16 HPercent )
void GetRangesForInterval ( nsIDOMNode beginNode , PRInt32 beginOffset , nsIDOMNode endNode , PRInt32 endOffset , PRBool allowAdjacent , out PRUint32 resultCount , out nsIDOMRange results )
- Arguments:
- beginNode
- beginOffset
- endNode
- endOffset
- allowAdjacent
- resultCount
- results
void GetRangesForIntervalCOMArray ( nsIDOMNode beginNode , PRInt32 beginOffset , nsIDOMNode endNode , PRInt32 endOffset , PRBool allowAdjacent , RangeArray* results )
- Arguments:
- beginNode
- beginOffset
- endNode
- endOffset
- allowAdjacent
- results
void scrollIntoView ( PRInt16 region , PRBool isSynchronous , PRInt16 VPercent , PRInt16 HPercent )
Scrolls a region of the selection, so that it is visible in the scrolled view.
- Arguments:
- region: - the region inside the selection to scroll into view (see selection region constants defined in nsISelectionController).
- isSynchronous: - when true, scrolls the selection into view before returning. If false, posts a request which is processed at some point after the method returns.
- VPercent: - how to align the frame vertically. A value of 0 means the frame's upper edge is aligned with the top edge of the visible area. A value of 100 means the frame's bottom edge is aligned with the bottom edge of the visible area. For values in between, the point "aVPercent" down the frame is placed at the point "aVPercent" down the visible area. A value of 50 centers the frame vertically. A value of -1 means move the frame the minimum amount necessary in order for the entire frame to be visible vertically (if possible).
- HPercent: - how to align the frame horizontally. A value of 0 means the frame's left edge is aligned with the left edge of the visible area. A value of 100 means the frame's right edge is aligned with the right edge of the visible area. For values in between, the point "aHPercent" across the frame is placed at the point "aHPercent" across the visible area. A value of 50 centers the frame horizontally . A value of -1 means move the frame the minimum amount necessary in order for the entire frame to be visible horizontally (if possible).
Reference documentation is generated from Mozilla's source.
