public class WPFRichTextBox extends WPFTextBoxBase
Modifier | Constructor and Description |
---|---|
protected |
WPFRichTextBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFRichTextBox with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all the content from the RichTextBox.
|
int |
getCaretIndex()
Gets the insertion position index of the caret.
|
String |
getSelectedText()
Gets the content of the current selection in the text box.
|
int |
getSelectionLength()
Gets a value indicating the number of characters in the current selection in the text box.
|
int |
getSelectionStart()
Gets a character index for the beginning of the current selection.
|
void |
select(int start,
int length)
Selects a range of text in the text box.
|
void |
setText(String text)
Sets the text.
|
appendText, canRedo, canUndo, copy, cut, getHorizontalScrollBarVisibility, getText, getVerticalScrollBarVisibility, isAcceptsReturn, isAcceptsTab, isAutoWordSelection, isReadOnly, isSpellCheckEnabled, isUndoEnabled, paste, redo, selectAll, undo
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFRichTextBox(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFRichTextBoxdesktop
- the desktop on which this object livespublic void clear()
public void select(int start, int length)
start
- the start position for the selectionlength
- the number of characters to select from the start positionpublic void setText(String text)
text
- the text to setpublic int getCaretIndex()
public String getSelectedText()
public int getSelectionLength()
public int getSelectionStart()
Copyright 2009-2012 Micro Focus. All Rights Reserved.