FOM Reference > Display > Page Content > fdEditStream interface
  
fdEditStream interface
An object representing a stream that is being edited.
numChars attribute
The number of characters selected.
numChars
Access
read-only
Returns
int
position attribute
The position of the cursor in the stream.
position
Access
read-only
Returns
int
selectedChars attribute
The actual characters selected in the yellow bar.
selectedChars
Access
read-only
Returns
String
source attribute
The source stream object.
source
Access
read-only
Returns
fStream
textProperties attribute
The text properties at the current cursor position.
textProperties
Access
read-only
Returns
fdTextProperties
viewEndPosition attribute
The character position of the last character shown in the yellow bar.
viewEndPosition
Access
read-only
Returns
int
viewStartPosition attribute
The character position of the first character shown in the yellow bar.
viewStartPosition
Access
read-only
Returns
int
xmlNode attribute
Returns the node of the current location if the stream is XML.
xmlNode
Access
read-only
Returns
fxNode
insertMarkup method
Insert the markup for the specified name into the current cursor position. If value is not specified, a dialog box may be triggered.
insertMarkupnamevalue
Parameters
Stringname
The name of the markup definition to use.
Stringvalue
The value to insert. If this is not specified, a dialog box may be triggered.
Returns
void. None
setCursorPos method
Places the cursor at the provided start position in the yellow bar or selects text if the end position is also provided.
setCursorPosstartend
Parameters
intstart
The position to place the cursor or the start position of the text to select.
intend
The end position of the text to select.
Returns
void. None.