In This Topic
Pastes the contents of the Clipboard to a defined region of the current screen and, if needed, regions of subsequent screens in the host application.
Syntax
'Declaration
Sub PasteRange( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ControlKeyCode, _
ByVal As Boolean, _
ByVal As Boolean _
)
'Usage
Dim instance As IIbmScreen
Dim top As Integer
Dim left As Integer
Dim bottom As Integer
Dim right As Integer
Dim remTop As Integer
Dim remLeft As Integer
Dim remBottom As Integer
Dim remRight As Integer
Dim keycode As ControlKeyCode
Dim wrapText As Boolean
Dim useFieldDelim As Boolean
instance.PasteRange(top, left, bottom, right, remTop, remLeft, remBottom, remRight, keycode, wrapText, useFieldDelim)
void PasteRange(
int ,
int ,
int ,
int ,
int ,
int ,
int ,
int ,
ControlKeyCode ,
bool ,
bool
)
Parameters
- top
- The starting row coordinate for the first screen.
- left
- The starting column coordinate for the first screen.
- bottom
- The ending row coordinate for the first screen.
- right
- The ending column coordinate for the first screen.
- remTop
- The starting row coordinate for the remaining screens.
- remLeft
- The starting column coordinate for the remaining screens.
- remBottom
- The ending row coordinate for the remaining screens.
- remRight
- The ending column coordinate for the remaining screens.
- keycode
- The ControlKeyCode value that specifies the terminal key to use to scroll to the second and remaining screens in the paste range.
- wrapText
- Determines what happens when a line of text being copied exceeds the current line length. If this value is true, the remaining text in the line is pasted at the start of the next field. If it is false, the current line is truncated and the next line is pasted at the start of the next field.
- useFieldDelim
- Controls how text is pasted when the screen contains protected locations. If false, pasting stops if the first field on a row is protected. If true, the method continues to search for subsequent fields, searching first right and then down, until it finds another unprotected field. If an unprotected field is located, pasting starts in this field; if not, pasting stops. When pasting is stopped, any remaining text is put into the PasteNext buffer.
See Also