Class SyntaxEditorPresenter
Editing, Scrolling, Layers.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public class SyntaxEditorPresenter : ContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, ISyntaxEditorPresenter
Constructors
SyntaxEditorPresenter()
Initializes a new instance of the Syntax
Declaration
public SyntaxEditorPresenter()
Fields
DragMargin
The drag margin.
Declaration
protected static readonly double DragMargin
Field Value
System.
|
MaxSize
Properties
Caret
CaretColor
Gets or sets the caret color.
Declaration
public Color CaretColor { get; set; }
Property Value
System. The caret display mode. |
CaretDisplayMode
Gets or sets the caret display mode.
Declaration
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value
Caret The caret display mode. |
CaretWidth
Gets or sets the caret width when the DisplayMode is set to Normal.
Declaration
public double CaretWidth { get; set; }
Property Value
System. The caret display mode. |
HorizontalScrollOffset
Gets or sets the horizontal scroll offset.
Declaration
public double HorizontalScrollOffset { get; protected set; }
Property Value
System. The horizontal scroll offset. |
IsPresenterFocused
Gets a value indicating whether this instance is presenter focused.
Declaration
public bool IsPresenterFocused { get; }
Property Value
System.
|
Owner
Gets or sets the owner.
Declaration
public RadSyntaxEditorElement Owner { get; set; }
Property Value
Rad The owner. |
VerticalScrollOffset
Gets or sets the vertical scroll offset.
Declaration
public double VerticalScrollOffset { get; protected set; }
Property Value
System. The vertical scroll offset. |
Viewport
Gets the viewport.
Declaration
public Rect Viewport { get; }
Property Value
Rect
The viewport. |
Implements
Methods
ArrangeOverride(SizeF)
When overridden in a derived class, positions child elements and determines a size for a System.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The final area within the parent that this element should use to arrange itself and its children. |
Returns
System. The actual size used. |
Overrides
FocusCaret()
Focuses the caret.
Declaration
public void FocusCaret()
GetDocumentPointFromPosition(CaretPosition)
Gets the document point from position.
Declaration
public Point GetDocumentPointFromPosition(CaretPosition position)
Parameters
Caret The position. |
Returns
Point
Point. |
Implements
GetDocumentPointFromViewPoint(Point)
Gets the document point from view point.
Declaration
public Point GetDocumentPointFromViewPoint(Point point)
Parameters
Point
point
The point. |
Returns
Point
Point. |
Implements
GetPositionFromViewPoint(Point)
Gets the position from view point.
Declaration
public CaretPosition GetPositionFromViewPoint(Point point)
Parameters
Point
point
The position. |
Returns
Caret CaretPosition. |
Implements
GetScrollMax(RadScrollBarElement)
Declaration
protected virtual int GetScrollMax(RadScrollBarElement scrollBarElement)
Parameters
Rad
|
Returns
System.
|
GetViewPointFromDocumentPoint(Point)
Gets the view point from document point.
Declaration
public Point GetViewPointFromDocumentPoint(Point point)
Parameters
Point
point
The point. |
Returns
Point
Point. |
Implements
GetViewPointFromPosition(CaretPosition)
Gets the view point from position.
Declaration
public Point GetViewPointFromPosition(CaretPosition position)
Parameters
Caret The position. |
Returns
Point
Point. |
Implements
HideDropMarker()
Hides the drop marker.
Declaration
public void HideDropMarker()
Implements
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
InvalidateAndUpdateLayout()
Invalidates the and update layout.
Declaration
protected void InvalidateAndUpdateLayout()
InvalidateLayout()
Invalidates the layout.
Declaration
protected void InvalidateLayout()
InvalidateLayout(Boolean)
Invalidates the layout.
Declaration
public void InvalidateLayout(bool force)
Parameters
System.
|
MeasureOverride(SizeF)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
System. The size that this element determines it needs during layout, based on its calculations of child element sizes. |
Overrides
MoveCaretToPositionInView(CaretPosition, Point, Boolean)
Moves the caret to position in view.
Declaration
public void MoveCaretToPositionInView(CaretPosition caretPosition, Point positionInView, bool moveToNextIfOutOfBox)
Parameters
Caret The caret position. |
Point
positionInView
The position in view. |
System. If set to |
Implements
MoveDropMarker(CaretPosition)
Moves the drop marker.
Declaration
public void MoveDropMarker(CaretPosition position)
Parameters
Caret The position. |
Implements
OnGotFocus(EventArgs)
Invoked whenever an unhandled System.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System. The System. |
Overrides
OnMouseDown(MouseEventArgs)
Invoked when an unhandled System.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System. The System. |
Overrides
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Mouse The System. |
Overrides
OnMouseMove(MouseEventArgs)
Invoked when an unhandled System.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System. The System. |
Overrides
OnViewportChanged()
Called when [viewport changed].
Declaration
protected virtual void OnViewportChanged()
PerformPaintTransformation(ref RadMatrix)
Declaration
protected override bool PerformPaintTransformation(ref RadMatrix matrix)
Parameters
Rad
|
Returns
System.
|
Overrides
SetHorizontalOffset(Double)
Sets the horizontal offset.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
System. The offset. |
SetVerticalOffset(Double)
Sets the vertical offset.
Declaration
public void SetVerticalOffset(double offset)
Parameters
System. The offset. |
ShowDropMarker(CaretPosition)
Shows the drop marker.
Declaration
public void ShowDropMarker(CaretPosition position)
Parameters
Caret The position. |
Implements
UpdateScrollBar(Double, Double, RadScrollBarElement, ScrollBarVisibility)
Updates the scroll bar.
Declaration
protected virtual void UpdateScrollBar(double viewportSize, double max, RadScrollBarElement scrollBar, ScrollBarVisibility suggestedVisibility)
Parameters
System. Size of the viewport. |
System. The maximum. |
Rad The scroll bar. |
Scroll The suggested visibility. |
Events
ViewportChanged
Occurs when [viewport changed].
Declaration
public event EventHandler ViewportChanged
Event Type
System.
|
Implements
Explicit Interface Implementations
ISyntaxEditorPresenter.Editor
Gets the editor.
Declaration
RadSyntaxEditorElement ISyntaxEditorPresenter.Editor { get; }
Returns
Rad The editor. |
Implements
ISyntaxEditorPresenter.HorizontalScrollOffset
Gets the horizontal scroll offset.
Declaration
double ISyntaxEditorPresenter.HorizontalScrollOffset { get; }
Returns
System. The horizontal scroll offset. |
Implements
ISyntaxEditorPresenter.VerticalScrollOffset
Gets the vertical scroll offset.
Declaration
double ISyntaxEditorPresenter.VerticalScrollOffset { get; }
Returns
System. The vertical scroll offset. |