Package com.altova.automation.XMLSpy
Class TextView
java.lang.Object
com.altova.automation.libs.COMIUnknownObject
com.altova.automation.libs.COMIDispatchObject
com.altova.automation.XMLSpy.TextView
public class TextView extends COMIDispatchObject
-
Field Summary
Fields inherited from class com.altova.automation.libs.COMIDispatchObject
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF -
Method Summary
Modifier and Type Method Description COMIDispatchObjectgetApplication()property ApplicationGUIDgetEventInterfaceIID()GUIDgetInterfaceIID()intgetLength()Returns the character count of the current document.intgetLineCount()Returns the line count of the current document.COMIDispatchObjectgetParent()property Parentjava.lang.StringgetRangeText(int nPosFrom, int nPosTill)Returns the text in the specified range.intgetSelectionEnd()Returnssets a value indicating the text selection end position.intgetSelectionStart()Returnssets a value indicating the text selection start position.java.lang.StringgetSelText()Returnssets the selected text.java.lang.StringgetText()Returnssets the all text in TextView.voidgoToLineChar(int nLine, int nChar)Moves the caret to the specified line and character position.intlineFromPosition(int nCharPos)Returns the line number of the character position.intlineLength(int nLine)Returns the length of the line.voidmoveCaret(int nDiff)Moves the caret nDiff characters.intpositionFromLine(int nLine)Returns the start position of the line.voidreplaceText(int nPosFrom, int nPosTill, java.lang.String sText)Replaces text in the specified range.voidselectText(int nPosFrom, int nPosTill)Selects the text in the specified range.voidsetSelectionEnd(int newValue)Returnssets a value indicating the text selection end position.voidsetSelectionStart(int newValue)Returnssets a value indicating the text selection start position.voidsetSelText(java.lang.String newValue)Returnssets the selected text.voidsetText(java.lang.String newValue)Returnssets the all text in TextView.Methods inherited from class com.altova.automation.libs.COMIDispatchObject
addListener, getProperty, getProperty, invoke, removeListener, setProperty, setPropertyMethods inherited from class com.altova.automation.libs.COMIUnknownObject
dispose, equals, getCOMInterfacePointer, isNull
-
Method Details
-
getInterfaceIID
-
getEventInterfaceIID
-
getApplication
property Application- Throws:
AutomationException
-
getParent
property Parent- Throws:
AutomationException
-
lineFromPosition
Returns the line number of the character position.- Throws:
AutomationException
-
positionFromLine
Returns the start position of the line.- Throws:
AutomationException
-
lineLength
Returns the length of the line.- Throws:
AutomationException
-
getSelText
Returnssets the selected text.- Throws:
AutomationException
-
setSelText
Returnssets the selected text.- Throws:
AutomationException
-
getRangeText
Returns the text in the specified range.- Throws:
AutomationException
-
replaceText
public void replaceText(int nPosFrom, int nPosTill, java.lang.String sText) throws AutomationExceptionReplaces text in the specified range.- Throws:
AutomationException
-
moveCaret
Moves the caret nDiff characters.- Throws:
AutomationException
-
goToLineChar
Moves the caret to the specified line and character position.- Throws:
AutomationException
-
selectText
Selects the text in the specified range.- Throws:
AutomationException
-
getSelectionStart
Returnssets a value indicating the text selection start position.- Throws:
AutomationException
-
setSelectionStart
Returnssets a value indicating the text selection start position.- Throws:
AutomationException
-
getSelectionEnd
Returnssets a value indicating the text selection end position.- Throws:
AutomationException
-
setSelectionEnd
Returnssets a value indicating the text selection end position.- Throws:
AutomationException
-
getText
Returnssets the all text in TextView.- Throws:
AutomationException
-
setText
Returnssets the all text in TextView.- Throws:
AutomationException
-
getLineCount
Returns the line count of the current document.- Throws:
AutomationException
-
getLength
Returns the character count of the current document.- Throws:
AutomationException
-