New to Telerik UI for WinFormsStart a free 30-day trial

SyntaxEditorPresenter behavior definition.

Definition

Namespace:Telerik.WinForms.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public interface ISyntaxEditorPresenter

Derived Classes: SyntaxEditorPresenter

Properties

Gets the editor.

C#
RadSyntaxEditorElement Editor { get; }
Property Value:

The editor.

Gets the horizontal scroll offset.

C#
double HorizontalScrollOffset { get; }
Property Value:

The horizontal scroll offset.

Gets the vertical scroll offset.

C#
double VerticalScrollOffset { get; }
Property Value:

The vertical scroll offset.

Gets the viewport.

C#
Rect Viewport { get; }
Property Value:

The viewport.

Methods

Gets the document point from position.

C#
Point GetDocumentPointFromPosition(CaretPosition position)
Parameters:positionCaretPosition

The position.

Returns:

Point

Point.

Gets the document point from view point.

C#
Point GetDocumentPointFromViewPoint(Point point)
Parameters:pointPoint

The point.

Returns:

Point

Point.

Gets the position from view point.

C#
CaretPosition GetPositionFromViewPoint(Point point)
Parameters:pointPoint

The point.

Returns:

CaretPosition

CaretPosition.

Gets the view point from document point.

C#
Point GetViewPointFromDocumentPoint(Point point)
Parameters:pointPoint

The point.

Returns:

Point

Point.

Gets the view point from position.

C#
Point GetViewPointFromPosition(CaretPosition position)
Parameters:positionCaretPosition

The position.

Returns:

Point

Point.

Hides the drop marker.

C#
void HideDropMarker()

Moves the caret to position in view.

C#
void MoveCaretToPositionInView(CaretPosition caretPosition, Point positionInView, bool moveToNextIfOutOfBox)
Parameters:caretPositionCaretPosition

The caret position.

positionInViewPoint

The position in view.

moveToNextIfOutOfBoxbool

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

Moves the drop marker.

C#
void MoveDropMarker(CaretPosition position)
Parameters:positionCaretPosition

The position.

Shows the drop marker.

C#
void ShowDropMarker(CaretPosition position)
Parameters:positionCaretPosition

The position.

Events

Occurs when [viewport changed].

C#
event EventHandler ViewportChanged