ClassSyntaxEditorPresenter
Editing, Scrolling, Layers.
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class SyntaxEditorPresenter : ContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, ISyntaxEditorPresenter
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlSyntaxEditorPresenter
Implements:
Inherited Members
Constructors
SyntaxEditorPresenter()
Initializes a new instance of the SyntaxEditorPresenter class.
Declaration
public SyntaxEditorPresenter()
Fields
DragMargin
The drag margin.
Properties
Caret
Gets the caret.
CaretColor
Gets or sets the caret color.
Declaration
public Color CaretColor { get; set; }
Property Value
The caret display mode.
CaretDisplayMode
Gets or sets the caret display mode.
Declaration
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value
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
The caret display mode.
HorizontalScrollOffset
Gets or sets the horizontal scroll offset.
Declaration
public double HorizontalScrollOffset { get; protected set; }
Property Value
The horizontal scroll offset.
IsPresenterFocused
Gets a value indicating whether this instance is presenter focused.
Declaration
public bool IsPresenterFocused { get; }
Property Value
true if this instance is presenter focused; otherwise, false.
Owner
Gets or sets the owner.
Declaration
public RadSyntaxEditorElement Owner { get; set; }
Property Value
The owner.
VerticalScrollOffset
Gets or sets the vertical scroll offset.
Declaration
public double VerticalScrollOffset { get; protected set; }
Property Value
The vertical scroll offset.
Methods
ArrangeOverride(SizeF)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
GetDocumentPointFromPosition(CaretPosition)
Gets the document point from position.
Declaration
public Point GetDocumentPointFromPosition(CaretPosition position)
Parameters
position
The position.
Returns
Point.
Implements
GetDocumentPointFromViewPoint(Point)
Gets the document point from view point.
GetPositionFromViewPoint(Point)
Gets the position from view point.
Declaration
public CaretPosition GetPositionFromViewPoint(Point point)
Parameters
point
The position.
Returns
CaretPosition.
Implements
GetScrollMax(RadScrollBarElement)
Declaration
protected virtual int GetScrollMax(RadScrollBarElement scrollBarElement)
Parameters
scrollBarElement
Returns
GetViewPointFromDocumentPoint(Point)
Gets the view point from document point.
GetViewPointFromPosition(CaretPosition)
Gets the view point from position.
Declaration
public Point GetViewPointFromPosition(CaretPosition position)
Parameters
position
The position.
Returns
Point.
Implements
HideDropMarker()
Hides the drop marker.
Declaration
public void HideDropMarker()
Implements
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
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(bool)
Invalidates the layout.
MeasureOverride(SizeF)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
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
The size that this element determines it needs during layout, based on its calculations of child element sizes.
Overrides
MoveCaretToPositionInView(CaretPosition, Point, bool)
Moves the caret to position in view.
Declaration
public void MoveCaretToPositionInView(CaretPosition caretPosition, Point positionInView, bool moveToNextIfOutOfBox)
Parameters
caretPosition
The caret position.
positionInView
The position in view.
moveToNextIfOutOfBox
If set to true [move to next if out of box].
Implements
MoveDropMarker(CaretPosition)
Moves the drop marker.
Declaration
public void MoveDropMarker(CaretPosition position)
Parameters
position
The position.
Implements
OnGotFocus(EventArgs)
Invoked whenever an unhandled GotFocus event reaches this element in its route.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnMouseDown(MouseEventArgs)
Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The that contains the event data. The event data reports that the left mouse button was pressed.
Overrides
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
The that contains the event data. The event data reports that the left mouse button was released.
Overrides
OnMouseMove(MouseEventArgs)
Invoked when an unhandled attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs that contains the event data.
Overrides
OnViewportChanged()
Called when [viewport changed].
Declaration
protected virtual void OnViewportChanged()
SetHorizontalOffset(double)
Sets the horizontal offset.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
offset
The offset.
SetVerticalOffset(double)
Sets the vertical offset.
Declaration
public void SetVerticalOffset(double offset)
Parameters
offset
The offset.
ShowDropMarker(CaretPosition)
Shows the drop marker.
Declaration
public void ShowDropMarker(CaretPosition position)
Parameters
position
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
viewportSize
Size of the viewport.
max
The maximum.
scrollBar
The scroll bar.
suggestedVisibility
The suggested visibility.
Events
ViewportChanged
Occurs when [viewport changed].
Declaration
public event EventHandler ViewportChanged
Event Value
Implements