InterfaceISyntaxEditorPresenter
SyntaxEditorPresenter behavior definition.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.UI
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public interface ISyntaxEditorPresenter
Properties
Editor
Gets the editor.
Declaration
RadSyntaxEditor Editor { get; }
Property Value
The editor.
HorizontalScrollOffset
Gets the horizontal scroll offset.
Declaration
double HorizontalScrollOffset { get; }
Property Value
The horizontal scroll offset.
VerticalScrollOffset
Gets the vertical scroll offset.
Declaration
double VerticalScrollOffset { get; }
Property Value
The vertical scroll offset.
Viewport
Gets the viewport.
Declaration
Rect Viewport { get; }
Property Value
Rect
The viewport.
Methods
GetDocumentPointFromPosition(CaretPosition)
Gets the document point from position.
Declaration
Point GetDocumentPointFromPosition(CaretPosition position)
Parameters
position
The position.
Returns
Point
Point.
GetDocumentPointFromViewPoint(Point)
Gets the document point from view point.
Declaration
Point GetDocumentPointFromViewPoint(Point point)
Parameters
point
Point
The point.
Returns
Point
Point.
GetPositionFromViewPoint(Point)
Gets the position from view point.
Declaration
CaretPosition GetPositionFromViewPoint(Point point)
Parameters
point
Point
The point.
Returns
CaretPosition.
GetViewPointFromDocumentPoint(Point)
Gets the view point from document point.
Declaration
Point GetViewPointFromDocumentPoint(Point point)
Parameters
point
Point
The point.
Returns
Point
Point.
GetViewPointFromPosition(CaretPosition)
Gets the view point from position.
Declaration
Point GetViewPointFromPosition(CaretPosition position)
Parameters
position
The position.
Returns
Point
Point.
MoveCaretToPositionInView(CaretPosition, Point, bool)
Moves the caret to position in view.
Declaration
void MoveCaretToPositionInView(CaretPosition caretPosition, Point positionInView, bool moveToNextIfOutOfBox)
Parameters
caretPosition
The caret position.
positionInView
Point
The position in view.
moveToNextIfOutOfBox
If set to true [move to next if out of box].
MoveDropMarker(CaretPosition)
Moves the drop marker.
Declaration
void MoveDropMarker(CaretPosition position)
Parameters
position
The position.
ShowDropMarker(CaretPosition)
Shows the drop marker.
Declaration
void ShowDropMarker(CaretPosition position)
Parameters
position
The position.
Events
ViewportChanged
Occurs when [viewport changed].