public class WPFFlowDocumentReader extends WPFControl
Modifier | Constructor and Description |
---|---|
protected |
WPFFlowDocumentReader(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFFlowDocumentReader。
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecreaseZoom()
获取 表示是否可以降低缩放级别的值。
|
boolean |
canGoToNextPage()
获取 表示查看器是否可以跳转到当前文档的下一页的值。
|
boolean |
canGoToPage(int pageNumber)
返回可显示查看器是否能跳转至指定页码的值。
|
boolean |
canGoToPreviousPage()
获取 表示查看器是否可以跳转到当前文档的上一页的值。
|
boolean |
canIncreaseZoom()
获取 表示是否可以提高缩放级别的值。
|
void |
decreaseZoom()
减少缩放。
|
void |
firstPage()
跳转到第一页。
|
double |
getMaxZoom()
获取 FlowDocumentReader 的最大允许缩放级别。
|
double |
getMinZoom()
获取 FlowDocumentReader 的最小允许缩放级别。
|
int |
getPageCount()
获取 当前文档的总页数。
|
int |
getPageNumber()
获取 当前母版页的页码。
|
String |
getSelection()
获取 FlowDocumentReader 的所选内容。
|
String |
getText()
获取 整个文档的文本。
|
ViewingMode |
getViewingMode()
获取 FlowDocumentReader 的查看模式。
|
double |
getZoom()
获取 FlowDocumentReader 的当前缩放级别。
|
double |
getZoomIncrement()
获取 缩放增量。
|
void |
goToPage(int pageNumber)
跳转到指定页。
|
void |
increaseZoom()
增加缩放。
|
void |
lastPage()
跳转到最后一页。
|
void |
nextPage()
跳转到下一页。
|
void |
previousPage()
跳转到上一页。
|
void |
select(String text)
选择一系列文本。
|
void |
select(String text,
int occurrence)
选择一系列文本。
|
void |
switchViewingMode(ViewingMode viewingMode)
切换查看模式。
|
void |
toggleFindDialog()
切换 Find 对话框。
|
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 WPFFlowDocumentReader(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFFlowDocumentReader 的句柄desktop
- 此对象所在的桌面public boolean canGoToPage(int pageNumber)
pageNumber
- 页码public void decreaseZoom()
public void firstPage()
public void goToPage(int pageNumber)
pageNumber
- 页码public void increaseZoom()
public void lastPage()
public void nextPage()
public void previousPage()
public void select(String text)
text
- 可选择的文本public void select(String text, int occurrence)
text
- 可选择的文本occurrence
- 可选择的指定文本的零基匹配项。. The value is zero-based.public void switchViewingMode(ViewingMode viewingMode)
viewingMode
- 可切换至的查看模式public void toggleFindDialog()
public boolean canDecreaseZoom()
public boolean canGoToNextPage()
public boolean canGoToPreviousPage()
public boolean canIncreaseZoom()
public double getMaxZoom()
public double getMinZoom()
public int getPageCount()
public int getPageNumber()
public String getText()
getText
in class TestObject
public ViewingMode getViewingMode()
public double getZoom()
public double getZoomIncrement()
Copyright 2009-2012 Micro Focus. All Rights Reserved.