Class EditScrollControl
Inherited Members
Namespace: Syncfusion.Windows.Edit
Assembly: Syncfusion.Edit.Wpf.dll
Syntax
public class EditScrollControl : ScrollAxisControl, IScrollBarProvider, IScrollInfo, IDisposable
Constructors
EditScrollControl()
Declaration
public EditScrollControl()
Properties
CaretIndex
Gets or sets the index of the caret.
Declaration
public int CaretIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | Type: System.Int32 |
LineNumber
Gets or sets current linenumber
Declaration
public int LineNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | Type: System.Int32 |
Methods
CreateScrollAxis(Orientation, Boolean, IScrollBar, ILineSizeHost)
Declaration
protected override ScrollAxisBase CreateScrollAxis(Orientation orientation, bool pixelScroll, IScrollBar scrollBar, ILineSizeHost lineSizes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Controls.Orientation | orientation | |
| System.Boolean | pixelScroll | |
| IScrollBar | scrollBar | |
| ILineSizeHost | lineSizes |
Returns
| Type |
|---|
| ScrollAxisBase |
Overrides
OnArrangeContent(Size)
Overriden method of ScrollAxisControl. It is used in the control to arrange the items based on the VisibleLinesCollection.
Declaration
protected override void OnArrangeContent(Size arrangeSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | arrangeSize | Specifies the size available for arrange the items. |
Overrides
OnCreateAutomationPeer()
Returns the AutomationPeer class for ScrollControl.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
| Type |
|---|
| System.Windows.Automation.Peers.AutomationPeer |
OnDragOver(DragEventArgs)
Declaration
protected override void OnDragOver(DragEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DragEventArgs | e |
OnGotFocus(RoutedEventArgs)
OnGotFocus - updates the visibility of the cursor to visible.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.RoutedEventArgs | e | represents the RoutedEventArgs |
OnLostFocus(RoutedEventArgs)
OnGotFocus - updates the visibility of the cursor to visible.
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.RoutedEventArgs | e | represents the RoutedEventArgs |
OnMouseMove(MouseEventArgs)
MouseMove event override - updates selection, updates scrollbar offset when the mouse is moved out of the viewing area
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
Overrides
Remarks
Each mouse move event the control update the selection pointer.
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
MouseLeftButtonDown preview event Sets cursor location after calculating the index and current lineitem Initiates selection
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
Remarks
OnPreviewMouseLeftButtonDown fires when the Mouseleft button down. It update the selection pointer.
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
MouseLeftButtonUp Preview event override, updates selection and selected text when the mouse is released.
Declaration
protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. |
OnPreviewMouseRightButtonDown(MouseButtonEventArgs)
MouseRightButtonDown preview event Sets cursor location after calculating the index and current lineitem Initiates selection
Declaration
protected override void OnPreviewMouseRightButtonDown(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed. |
Remarks
OnPreviewMouseRightButtonDown fires when the Mouse right button down. It update the selection pointer.