Namespace TallComponents.Interaction.WPF.Interactors.Annotations.Widgets
Class TextBoxInteractor
An abstract base class for PDF text widgets.
Syntax
public class TextBoxInteractor : ValueWidgetInteractor,IVerticalScroll
Properties
Cursor HoverCursor
An IBeam.
String SelectedText
Gets or sets the selected text in this text box.
Int32 SelectedTextIndex
Controls the start of the selection. If the SelectionLength is zero it controls the position
of the cursor.
Int32 SelectedTextLength
Controls the length of the selection.
Boolean ShowOverflow
Specifies whether an overflow marker must be shown if the text does
not fit.
Double VScrollLargeChange
Value between 0 and 1 that indicates how far the scrollbar must change to
"page" down or up.
Double VScrollSmallChange
Value between 0 and 1 that indicates how far the scrollbar must change to scroll
a single line of text.
Double VScrollValue
Specifies a value between 0 and 1 that indicates how far the text is scrolled
down. The scroll bars use this value to draw the slider at the correct possition,
and they change this value if the user changes the slider.
Methods
Void OnAttached(EventArgs)
Invoked when the interactor gets attached to it parent. This will set the blink interval to the value
that is indicated by CaretBlinkTime of the viewer.
Void OnCursorDown(Boolean,Boolean)
Invoked when the arrow down key pressed for this field.
Void OnCursorEnd(Boolean,Boolean)
Invoked when the end key is pressed for this field.
Void OnCursorHome(Boolean,Boolean)
Invoked when the home key is pressed for this field.
Void OnCursorLeft(Boolean,Boolean)
Invoked when the arrow left key is pressed for this field.
Void OnCursorRight(Boolean,Boolean)
Invoked when the arrow right key is pressed for this field.
Void OnCursorUp(Boolean,Boolean)
Invoked when the arrow up key is pressed for this field.
Void OnDetached(EventArgs)
Invoked when the interactor received a close event. This will release
all resources that are held by the interactor.
Void OnDragDrop(DragDropEventArgs)
Invoked when an object gets dropped onto this interactor. This override will insert the
text value of the object (if any) at the location of the cursor.
Void OnDragEnter(DragDropEventArgs)
Invoked when a dragged object enters the interactor. This override will temporarily
set the focus to this interactor, so that a cursor can be shown where the dragged
object hovers.
Void OnDragLeave(EventArgs)
Invoked when a dragged object leaves the interactor. This override restores the
focus.
Void OnDragOver(DragDropEventArgs)
Invoked when an object is dragged over this interactor. This override will place the
cursor at the position of the dragged object.
Void OnGotFocus(EventArgs)
Invoked after the interactor got the focus. This override will move the cursor to the
location of the mouse, if the focus event was caused by a mouse click.
Void OnKeyDown(KeyboardEventArgs)
Invoked as a result of a key down event.
Void OnLostFocus(EventArgs)
Invoked after the text box lost the focus. This override will remove the
blinking cursor.
Void OnMouseDoubleClick(MouseEventArgs)
Invoked when a double-click occurs. This override will select a word.
Void OnMouseDown(MouseEventArgs)
Invoked when the mouse goes down into the text field.
Void OnMouseMove(MouseEventArgs)
Invoked when the mouse was moved inside the text field.
Void OnPaint(PaintEventArgs)
Invoked as result of a paint event, but only for text fields that are not hidden.