public class WPFRichTextBox extends WPFTextBoxBase
Modifier | Constructor and Description |
---|---|
protected |
WPFRichTextBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFRichTextBox。
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
清除 RichTextBox 中的所有内容。
|
int |
getCaretIndex()
获取 脱字号的插入位置索引。
|
String |
getSelectedText()
获取 文本框中当前选择的内容。
|
int |
getSelectionLength()
获取 表示文本框中当前选定内容的字符数量的值。
|
int |
getSelectionStart()
获取 当前选定内容的开始位置的字符索引。
|
void |
select(int start,
int length)
选择文本框中的一系列文本。
|
void |
setText(String 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
- 可确定 WPFRichTextBox 的句柄desktop
- 此对象所在的桌面public void clear()
public void select(int start, int length)
start
- 选定内容的开始位置length
- 可从开始位置选择的字符的数量public void setText(String text)
text
- 可设置的文本public int getCaretIndex()
public String getSelectedText()
public int getSelectionLength()
public int getSelectionStart()
Copyright 2009-2012 Micro Focus. All Rights Reserved.