Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.UI Namespace > DocumentViewerAnnotations Class : SelectedTextToReviewObject Method |
public bool SelectedTextToReviewObject( int pageNumber, AnnTextReviewObject textReviewObject )
'Declaration
Public Function SelectedTextToReviewObject( _ ByVal pageNumber As Integer, _ ByVal textReviewObject As AnnTextReviewObject _ ) As Boolean
'Usage
Dim instance As DocumentViewerAnnotations Dim pageNumber As Integer Dim textReviewObject As AnnTextReviewObject Dim value As Boolean value = instance.SelectedTextToReviewObject(pageNumber, textReviewObject)
public: bool SelectedTextToReviewObject( int pageNumber, AnnTextReviewObject^ textReviewObject )
This method is called by the internal AnnTextReviewObject draw designer when the user creates a new text review object from the current selection.
This methods uses GetSelectedTextItems to get the rectangles of the selected text items and adds them to textReviewObject using SetRectangles.
If textReviewObject is not a child of the AnnContainer object associated with the page then it will be added to the Children collection. This operation will be wrapped by BeginUndo and EndUndo then textReviewObject will be selected by the automation using SelectObject.
This method fires the Operation event with DocumentViewerOperation.SelectedTextToReviewObject.