Hello, is it possible to force PDfViwer select only the whole words, but not the parts of them ? Thanks in advance
2 Answers, 1 is accepted
0
Accepted
Deyan
Telerik team
answered on 03 Nov 2017, 05:16 PM
Hello,
RadPdfViewer does not have out-of-the-box selection mode which selects only full words. However, it provides some public API which may help you achieve this scenario. The following code snippet shows sample implementation which uses TextSelection SelectionChanged event and TextPosition MoveToCurrentWordStart and MoveToCurrentWordEnd methods.
In order to test the above implementation, you should subscribe to RadPdfViewer instance DocumentChanged event. This may be done right after InitializeComponent() method call in the MainWindow constructor as shown in the snippet below:
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.