public class WPFDocumentViewerBase extends WPFControl
| Modifier | Constructor and Description |
|---|---|
protected |
WPFDocumentViewerBase(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFDocumentViewerBase。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGoToNextPage()
获取 表示查看器是否可以跳转到当前文档的下一页的值。
|
boolean |
canGoToPage(int pageNumber)
返回可显示查看器是否能跳转至指定页码的值。
|
boolean |
canGoToPreviousPage()
获取 表示查看器是否可以跳转到当前文档的上一页的值。
|
void |
firstPage()
跳转到第一页。
|
int |
getMasterPageNumber()
获取 当前母版页的页码。
|
int |
getPageCount()
获取 当前文档的总页数。
|
String |
getText()
获取 整个文档的文本。
|
void |
goToPage(int pageNumber)
跳转到指定页。
|
void |
lastPage()
跳转到最后一页。
|
void |
nextPage()
跳转到下一页。
|
void |
previousPage()
跳转到上一页。
|
getFontFamily, getFontSize, getTabIndex, isTabStopgetActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPositionbringIntoView, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected WPFDocumentViewerBase(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 WPFDocumentViewerBase 的句柄desktop - 此对象所在的桌面public boolean canGoToPage(int pageNumber)
pageNumber - 页码public void firstPage()
public void goToPage(int pageNumber)
pageNumber - 页码public void lastPage()
public void nextPage()
public void previousPage()
public boolean canGoToNextPage()
public boolean canGoToPreviousPage()
public int getMasterPageNumber()
public int getPageCount()
public String getText()
getText in class TestObjectCopyright 2009-2012 Micro Focus. All Rights Reserved.