MoveEnd Method (streamPoint, count)

Pageflex Document Action API

Pageflex Document Action API MoveEnd Method (streamPoint, count)
Namespaces > Pageflex.Scripting > Range > MoveEnd(StreamPoint, Int32)
Moves the end of the range by the specified number of stream points.
Syntax
C# Visual Basic Managed C++
public void MoveEnd (
	StreamPoint streamPoint,
	int count
)
Public Sub MoveEnd ( _
	streamPoint As StreamPoint, _
	count As Integer _
)
public:
void MoveEnd (
	StreamPoint streamPoint, 
	int count
)
Parameters
streamPoint (StreamPoint)
The StreamPoint by which the end of the range is to be moved.
count (Int32)
The number of stream points by which the end of the range is to be moved.
Remarks
This method doesn't rearrange text in the document. Instead, it redefines the range to refer to a new location in the document.

If count is a positive number, the end of the range is moved forward. If it's a negative number, the end is moved backward. If count is 0, the end of the range is moved to the specified StreamPoint unless it is already there.

If streamPoint is StreamStart or StreamEnd, count is ignored.

Exceptions
Exception Condition
MoveRangeFailedException Attempt to move past the beginning or end of the stream.
StaleScriptingObjectException This object's associated internal object no longer exists.

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)