跳轉到主要內容
Visual Components 已在 Windows 版 FRE 中實作。
ComponentSynchronizer 物件可讓您在不同元件之間同步文件處理。這表示在所有已連接的 Visual Components 中,所有作業都會同步執行。 元件同步器 沒有使用者介面。它不使用 Visual Components 的任何內部功能,而是僅使用元件的 COM API。若要了解 Synchronizer 在各種情況下如何運作,請參閱 How Component Synchronizer Works 同步處理資訊會透過特殊的傳出介面回報。這些介面包括 IComponentSynchronizerEvents (適用於 C++) ,以及 dispinterface DIComponentSynchronizerEvents (適用於 Visual Basic) 。 值得注意的是,Visual Basic 使用者不必在意事件介面實作的細節,因為此開發平台已提供簡便的處理方式。在 Visual Basic 中,此物件可宣告為 WithEvents。 對 C++ 使用者而言,這表示它支援 IConnectionPointContainer 介面。若要接收通知事件,C++ 使用者應建立一個衍生自 IComponentSynchronizerEvents 介面的物件,然後透過標準 COM 方法,在該物件與 ComponentSynchronizer 物件中實作的事件來源之間建立連線。
我們建議您在 Engine 解除初始化之前先釋放 元件同步器。

屬性

名稱類型說明
DocumentFRDocument指定連接到 元件同步器 的文件。
DocumentViewerDocumentViewer指定連接到 元件同步器 的 Document Viewer。
ImageViewerImageViewer指定連接到 元件同步器 的 Image Viewer。
PageIndexint指定文件中目前使用中頁面的索引。
ProcessingParamsDocumentProcessingParams儲存文件的預設處理參數。如果您透過此屬性變更處理參數,則已連接的 Document Viewer、Image Viewer 和 Zoom Viewer 的 ProcessingParams 屬性會設為相同的值;已連接的 Text Editor 和 Text Validator 的 SynthesisParamsForDocument 屬性則會設為 IDocumentProcessingParams::SynthesisParamsForDocument 的值。
TextEditorTextEditor指定連接到 元件同步器 的 Text Editor。
TextValidatorTextValidator指定連接到 元件同步器 的 Text Validator。
ZoomViewerZoomViewer指定連接到 元件同步器 的 Zoom Viewer。

範例

此元件用於以下程式碼範例:VisualComponents

另請參閱

IComponentSynchronizerEvents 元件同步器的運作方式 建立具備圖形使用者介面的應用程式