public class WPFTextBox extends WPFTextBoxBase
Modifier | Constructor and Description |
---|---|
protected |
WPFTextBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFTextBox。
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
清除文本框中的所有内容。
|
int |
getCaretIndex()
获取 脱字号的插入位置索引。
|
CharacterCasing |
getCharacterCasing()
获取 表示将字符手动输入文本框时字符的大小写如何确定的值。
|
int |
getCharacterIndexFromLineIndex(int lineIndex)
返回指定行中第一个字符的零基字符索引。
|
int |
getFirstVisibleLineIndex()
返回文本框中当前可见的第一行的行索引。
|
int |
getLastVisibleLineIndex()
返回文本框中当前可见的最后一行的行索引。
|
int |
getLineCount()
获取 文本框中行的总数。
|
int |
getLineIndexFromCharacterIndex(int charIndex)
返回包含指定字符索引的行的零基行索引。
|
int |
getLineLength(int lineIndex)
返回指定行中字符的数量。
|
String |
getLineText(int lineIndex)
返回当前显示在指定行中的文本。
|
int |
getMaxLength()
获取 可手动输入至文本框的字符的最大数量。
|
int |
getMaxLines()
获取 可见行的最大数量。
|
int |
getMinLines()
获取 可见行的最小数量。
|
String |
getSelectedText()
获取 文本框中当前选择的内容。
|
int |
getSelectionLength()
获取 表示文本框中当前选定内容的字符数量的值。
|
int |
getSelectionStart()
获取 当前选定内容的开始位置的字符索引。
|
TextAlignment |
getTextAlignment()
获取 文本框内容的垂直对齐。
|
TextWrapping |
getTextWrapping()
获取 表示文本框应如何进行文本换行的值。
|
void |
scrollToLine(int lineIndex)
滚动指定行索引处的行至视图。
|
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 WPFTextBox(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFTextBox 的句柄desktop
- 此对象所在的桌面public void clear()
public int getCharacterIndexFromLineIndex(int lineIndex)
lineIndex
- 可为其检索第一个字符索引的行的零基索引public int getFirstVisibleLineIndex()
public int getLastVisibleLineIndex()
public int getLineIndexFromCharacterIndex(int charIndex)
charIndex
- 可为其检索关联行索引的零基字符索引public int getLineLength(int lineIndex)
lineIndex
- 可为其返回字符计数的零基行索引public String getLineText(int lineIndex)
lineIndex
- 可为其检索当前显示文本的零基行索引public void scrollToLine(int lineIndex)
lineIndex
- 可滚动至视图的行的零基行索引public void select(int start, int length)
start
- 选定内容中第一个字符的零基字符索引length
- 选定内容的长度(字符数)public void setText(String text)
text
- 可设置的文本public int getCaretIndex()
public CharacterCasing getCharacterCasing()
public int getLineCount()
public int getMaxLength()
public int getMaxLines()
public int getMinLines()
public String getSelectedText()
public int getSelectionLength()
public int getSelectionStart()
public TextAlignment getTextAlignment()
public TextWrapping getTextWrapping()
Copyright 2009-2012 Micro Focus. All Rights Reserved.