public class WPFDocumentViewer extends WPFDocumentViewerBase
Modifier | Constructor and Description |
---|---|
protected |
WPFDocumentViewer(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFDocumentViewer。
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecreaseZoom()
获取 表示 DocumentViewer 是否可以进行进一步缩小的值。
|
boolean |
canIncreaseZoom()
获取 表示 DocumentViewer 是否可以进行进一步放大的值。
|
void |
decreaseZoom()
将文档内容缩小一缩放步长。
|
void |
fitToHeight()
调整单页以适应当前视区的高度。
|
void |
fitToWidth()
调整单页以适应当前视区的宽度。
|
double |
getHorizontalOffset()
获取 水平滚动位置。
|
String |
getSelection()
获取 DocumentViewer 的所选内容。
|
double |
getVerticalOffset()
获取 垂直滚动位置。
|
double |
getZoom()
获取 文档缩放比例。
|
void |
increaseZoom()
将文档内容放大一缩放步长。
|
void |
moveDown()
将文档内容向下滚动 16 设备无关像素。
|
void |
moveLeft()
将文档内容向左滚动 16 设备无关像素。
|
void |
moveRight()
将文档内容向右滚动 16 设备无关像素。
|
void |
moveUp()
将文档内容向上滚动 16 设备无关像素。
|
void |
scrollPageDown()
向下滚动一视区。
|
void |
scrollPageLeft()
向左滚动一视区。
|
void |
scrollPageRight()
向右滚动一视区。
|
void |
scrollPageUp()
向上滚动一视区。
|
void |
select(String text)
选择一系列文本。
|
void |
select(String text,
int occurrence)
选择一系列文本。
|
void |
zoomToActualSize()
缩放为 100%。
|
canGoToNextPage, canGoToPage, canGoToPreviousPage, firstPage, getMasterPageNumber, getPageCount, getText, goToPage, lastPage, nextPage, previousPage
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 WPFDocumentViewer(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFDocumentViewer 的句柄desktop
- 此对象所在的桌面public void decreaseZoom()
public void fitToHeight()
public void fitToWidth()
public void increaseZoom()
public void moveDown()
public void moveLeft()
public void moveRight()
public void moveUp()
public void scrollPageDown()
public void scrollPageLeft()
public void scrollPageRight()
public void scrollPageUp()
public void select(String text)
text
- 可选择的文本public void select(String text, int occurrence)
text
- 可选择的文本occurrence
- 可选择的指定文本的零基匹配项。. The value is zero-based.public void zoomToActualSize()
public boolean canDecreaseZoom()
public boolean canIncreaseZoom()
public double getHorizontalOffset()
public String getSelection()
public double getVerticalOffset()
public double getZoom()
Copyright 2009-2012 Micro Focus. All Rights Reserved.