nsISelection
Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)In Gecko 8.0 this Interface was merged into the nsISelectionPrivate
interface.
void GetRangesForInterval(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, out PRUint32 resultCount, [retval, array, size_is(resultCount)] out nsIDOMRange results); |
void GetRangesForIntervalCOMArray(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, in RangeArray results); Native code only! |
void scrollIntoView(in short aRegion, in boolean aIsSynchronous, in short aVPercent, in short aHPercent); |
Attribute | Type | Description |
type |
short |
Returns the type of the selection (see nsISelectionController for available constants). Read only. |
Return array of ranges intersecting with the given DOM interval.
void GetRangesForInterval( in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, out PRUint32 resultCount, [retval, array, size_is(resultCount)] out nsIDOMRange results );
beginNode
beginOffset
endNode
endOffset
allowAdjacent
resultCount
results
void GetRangesForIntervalCOMArray( in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, in RangeArray results );
beginNode
beginOffset
endNode
endOffset
allowAdjacent
results
Scrolls a region of the selection, so that it is visible in the scrolled view.
void scrollIntoView( in short aRegion, in boolean aIsSynchronous, in short aVPercent, in short aHPercent );
aRegion
nsISelectionController
).aIsSynchronous
true
, scrolls the selection into view before returning. If false
, posts a request which is processed at some point after the method returns.aVPercent
aHPercent