Interface
ISyntaxEditorPresenter

SyntaxEditorPresenter behavior definition.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.UI

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public interface ISyntaxEditorPresenter

Properties

Editor

Gets the editor.

Declaration

cs-api-definition
RadSyntaxEditor Editor { get; }

Property Value

RadSyntaxEditor

The editor.

HorizontalScrollOffset

Gets the horizontal scroll offset.

Declaration

cs-api-definition
double HorizontalScrollOffset { get; }

Property Value

double

The horizontal scroll offset.

VerticalScrollOffset

Gets the vertical scroll offset.

Declaration

cs-api-definition
double VerticalScrollOffset { get; }

Property Value

double

The vertical scroll offset.

Viewport

Gets the viewport.

Declaration

cs-api-definition
Rect Viewport { get; }

Property Value

Rect

The viewport.

Methods

GetDocumentPointFromPosition(CaretPosition)

Gets the document point from position.

Declaration

cs-api-definition
Point GetDocumentPointFromPosition(CaretPosition position)

Parameters

position

CaretPosition

The position.

Returns

Point

Point.

GetDocumentPointFromViewPoint(Point)

Gets the document point from view point.

Declaration

cs-api-definition
Point GetDocumentPointFromViewPoint(Point point)

Parameters

point

Point

The point.

Returns

Point

Point.

GetPositionFromViewPoint(Point)

Gets the position from view point.

Declaration

cs-api-definition
CaretPosition GetPositionFromViewPoint(Point point)

Parameters

point

Point

The point.

Returns

CaretPosition

CaretPosition.

GetViewPointFromDocumentPoint(Point)

Gets the view point from document point.

Declaration

cs-api-definition
Point GetViewPointFromDocumentPoint(Point point)

Parameters

point

Point

The point.

Returns

Point

Point.

GetViewPointFromPosition(CaretPosition)

Gets the view point from position.

Declaration

cs-api-definition
Point GetViewPointFromPosition(CaretPosition position)

Parameters

position

CaretPosition

The position.

Returns

Point

Point.

HideDropMarker()

Hides the drop marker.

Declaration

cs-api-definition
void HideDropMarker()

MoveCaretToPositionInView(CaretPosition, Point, bool)

Moves the caret to position in view.

Declaration

cs-api-definition
void MoveCaretToPositionInView(CaretPosition caretPosition, Point positionInView, bool moveToNextIfOutOfBox)

Parameters

caretPosition

CaretPosition

The caret position.

positionInView

Point

The position in view.

moveToNextIfOutOfBox

bool

If set to true [move to next if out of box].

MoveDropMarker(CaretPosition)

Moves the drop marker.

Declaration

cs-api-definition
void MoveDropMarker(CaretPosition position)

Parameters

position

CaretPosition

The position.

ShowDropMarker(CaretPosition)

Shows the drop marker.

Declaration

cs-api-definition
void ShowDropMarker(CaretPosition position)

Parameters

position

CaretPosition

The position.

Events

ViewportChanged

Occurs when [viewport changed].

Declaration

cs-api-definition
event EventHandler ViewportChanged

Event Value

EventHandler