メインコンテンツへスキップ
Visual Components は、Windows 用 FRE で実装されています。
ComponentSynchronizer オブジェクトを使用すると、異なるコンポーネント間でドキュメント処理を同期できます。つまり、接続されているすべての Visual Components で、すべての操作が同時に実行されます。 Component Synchronizer にはユーザー インターフェイスがありません。また、Visual Components の内部機能は使用せず、コンポーネントの COM API のみを使用します。特定の状況で Synchronizer がどのように動作するかについては、Component Synchronizer の動作の仕組みを参照してください。 同期に関する情報は、専用の送信インターフェイスを通じて通知されます。これらのインターフェイスは、IComponentSynchronizerEvents (C++ 用) および dispinterface DIComponentSynchronizerEvents (Visual Basic 用) です。 なお、Visual Basic ユーザーはイベント インターフェイスの実装の詳細を意識する必要はありません。この開発プラットフォームには、それらを簡単に処理するための手段が用意されているためです。このオブジェクトは、Visual Basic では WithEvents として宣言できます。 C++ ユーザーにとっては、これは IConnectionPointContainer インターフェイスをサポートしていることを意味します。通知イベントを受け取るには、IComponentSynchronizerEvents インターフェイスから派生したオブジェクトを作成し、標準的な COM の方法で、そのオブジェクトと ComponentSynchronizer オブジェクトに実装されているイベント ソースとの接続を設定する必要があります。
Engine の終了処理を行う前に、Component Synchronizer を解放することをお勧めします。

プロパティ

NameTypeDescription
DocumentFRDocumentComponent Synchronizer に接続されているドキュメントを指定します。
DocumentViewerDocumentViewerComponent Synchronizer に接続されている Document Viewer を指定します。
ImageViewerImageViewerComponent Synchronizer に接続されている Image Viewer を指定します。
PageIndexintドキュメント内のアクティブ ページのインデックスを指定します。
ProcessingParamsDocumentProcessingParamsドキュメントの既定の処理パラメーターを格納します。このプロパティを使用して処理パラメーターを変更すると、接続されている Document Viewer、Image Viewer、および Zoom Viewer の ProcessingParams プロパティは同じ値に設定されます。また、接続されている Text Editor と Text Validator の SynthesisParamsForDocument プロパティは IDocumentProcessingParams::SynthesisParamsForDocument の値に設定されます。
TextEditorTextEditorComponent Synchronizer に接続されている Text Editor を指定します。
TextValidatorTextValidatorComponent Synchronizer に接続されている Text Validator を指定します。
ZoomViewerZoomViewerComponent Synchronizer に接続されている Zoom Viewer を指定します。

サンプル

このコンポーネントは、以下のコードサンプルで使用されています: VisualComponents.

関連項目

IComponentSynchronizerEvents Component Synchronizer の動作の仕組み グラフィカルユーザーインターフェイスを備えたアプリケーションの作成