WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class EditScrollControl

    Show / Hide Table of Contents

    Class EditScrollControl

    Inheritance
    System.Object
    VisualContainer
    ScrollControl
    ScrollAxisControl
    EditScrollControl
    Implements
    IScrollBarProvider
    System.Windows.Controls.Primitives.IScrollInfo
    System.IDisposable
    Inherited Members
    ScrollAxisControl.OnScrollLayoutChanged()
    ScrollAxisControl.CanAutoCalculateWidth()
    ScrollAxisControl.MeasureOverride(Size)
    ScrollAxisControl.LineDown()
    ScrollAxisControl.LineUp()
    ScrollAxisControl.PageDown()
    ScrollAxisControl.PageUp()
    ScrollAxisControl.LineRight()
    ScrollAxisControl.LineLeft()
    ScrollAxisControl.PageLeft()
    ScrollAxisControl.PageRight()
    ScrollAxisControl.ScrollToTop()
    ScrollAxisControl.ScrollToLeftEnd()
    ScrollAxisControl.ScrollToBottom()
    ScrollAxisControl.ScrollToRightEnd()
    ScrollAxisControl.OnMouseWheel(MouseWheelEventArgs)
    ScrollAxisControl.OnArrangeOverride(Size, Boolean)
    ScrollAxisControl.OnRenderSizeChanged(SizeChangedInfo)
    ScrollAxisControl.UpdateAxis(Size)
    ScrollAxisControl.PointToCellRowColumnIndex(MouseEventArgs)
    ScrollAxisControl.PointToCellRowColumnIndexOutsideCells(Point, Boolean)
    ScrollAxisControl.PointToCellRowColumnIndex(Point)
    ScrollAxisControl.GetClipRect(ScrollAxisRegion, ScrollAxisRegion)
    ScrollAxisControl.IsRowVisible(Int32)
    ScrollAxisControl.IsColumnVisible(Int32)
    ScrollAxisControl.IsCellVisible(RowColumnIndex)
    ScrollAxisControl.OnInvalidated(Boolean)
    ScrollAxisControl.Dispose(Boolean)
    ScrollAxisControl.ScrollRows
    ScrollAxisControl.ScrollColumns
    ScrollAxisControl.HorizontalPixelScroll
    ScrollAxisControl.VerticalPixelScroll
    ScrollAxisControl.AllowPixelScrollPadding
    ScrollAxisControl.TopRowIndex
    ScrollAxisControl.LeftColumnIndex
    ScrollAxisControl.RowHeightsProvider
    ScrollAxisControl.ColumnWidthsProvider
    ScrollControl.ZoomScaleProperty
    ScrollControl.ScrollControlMouseMoveEvent
    ScrollControl.ScrollControlMouseUpEvent
    ScrollControl.ScrollControlMouseDownEvent
    ScrollControl.ScrollControlPreviewMouseMoveEvent
    ScrollControl.ScrollControlPreviewMouseUpEvent
    ScrollControl.ScrollControlPreviewMouseDownEvent
    ScrollControl.OnLoaded(RoutedEventArgs)
    ScrollControl.OnUnloaded(RoutedEventArgs)
    ScrollControl.OnRender(DrawingContext)
    ScrollControl.HitTestCore(PointHitTestParameters)
    ScrollControl.ArrangeOverride(Size)
    ScrollControl.InvalidateVisual()
    ScrollControl.InvalidateVisual(Boolean)
    ScrollControl.OnTopLeftFrameExtentChanged()
    ScrollControl.OnBottomRightFrameExtentChanged()
    ScrollControl.GetChildFrame(Boolean, Boolean, Boolean, Boolean, VisualContainer)
    ScrollControl.SetFrameProperties(VisualContainer, ScrollControlChildFrame)
    ScrollControl.CreateScrollControlChildFrame()
    ScrollControl.GetVisualChild(Int32)
    ScrollControl.OnVScrollBarValueChanging(Object, ValueChangingEventArgs)
    ScrollControl.OnVScrollBarValueChanged(Object, EventArgs)
    ScrollControl.OnHScrollBarValueChanging(Object, ValueChangingEventArgs)
    ScrollControl.OnHScrollBarValueChanged(Object, EventArgs)
    ScrollControl.MouseWheelUp()
    ScrollControl.MouseWheelDown()
    ScrollControl.MouseWheelLeft()
    ScrollControl.MouseWheelRight()
    ScrollControl.SetVerticalOffset(Double)
    ScrollControl.SetHorizontalOffset(Double)
    ScrollControl.MakeVisible(Visual, Rect)
    ScrollControl.OnMouseEnter(MouseEventArgs)
    ScrollControl.OnMouseLeave(MouseEventArgs)
    ScrollControl.OnMouseDown(MouseButtonEventArgs)
    ScrollControl.OnMouseUp(MouseButtonEventArgs)
    ScrollControl.OnPreviewMouseWheel(MouseWheelEventArgs)
    ScrollControl.OnPreviewMouseDown(MouseButtonEventArgs)
    ScrollControl.OnPreviewMouseMove(MouseEventArgs)
    ScrollControl.OnDrop(DragEventArgs)
    ScrollControl.OnPreviewMouseUp(MouseButtonEventArgs)
    ScrollControl.OnScrollControlMouseMove(ScrollControlMouseEventArgs)
    ScrollControl.OnScrollControlMouseUp(ScrollControlMouseButtonEventArgs)
    ScrollControl.OnScrollControlMouseDown(ScrollControlMouseButtonEventArgs)
    ScrollControl.OnScrollControlPreviewMouseMove(ScrollControlMouseEventArgs)
    ScrollControl.OnScrollControlPreviewMouseUp(ScrollControlMouseButtonEventArgs)
    ScrollControl.OnScrollControlPreviewMouseDown(ScrollControlMouseButtonEventArgs)
    ScrollControl.ZoomScale
    ScrollControl.IsArrangeDirty
    ScrollControl.IsInArrangeOverride
    ScrollControl.IsInArrangeContent
    ScrollControl.TopLeftFrameExtent
    ScrollControl.BottomRightFrameExtent
    ScrollControl.BackgroundFrame
    ScrollControl.ForegroundFrame
    ScrollControl.ElementsFrame
    ScrollControl.InnerFrame
    ScrollControl.GraphicFrame
    ScrollControl.VisualChildren
    ScrollControl.VisualChildrenCount
    ScrollControl.VScroll
    ScrollControl.HScroll
    ScrollControl.IScrollBarProvider.Element
    ScrollControl.HScrollBar
    ScrollControl.VScrollBar
    ScrollControl.ScrollOwner
    ScrollControl.CanHorizontallyScroll
    ScrollControl.CanVerticallyScroll
    ScrollControl.HorizontalOffset
    ScrollControl.VerticalOffset
    ScrollControl.ExtentWidth
    ScrollControl.ExtentHeight
    ScrollControl.ViewportWidth
    ScrollControl.ViewportHeight
    ScrollControl.HScrollBarShadow
    ScrollControl.VScrollBarShadow
    ScrollControl.AutoScroller
    ScrollControl.MouseEventListeners
    ScrollControl.ScrollControlMouseMove
    ScrollControl.ScrollControlMouseUp
    ScrollControl.ScrollControlMouseDown
    ScrollControl.ScrollControlPreviewMouseMove
    ScrollControl.ScrollControlPreviewMouseUp
    ScrollControl.ScrollControlPreviewMouseDown
    VisualContainer.WantsMouseInputProperty
    VisualContainer.WantsKeyInputProperty
    VisualContainer.CellRenderBoundsProperty
    VisualContainer.GetWantsMouseInput(DependencyObject, UIElement)
    VisualContainer.SetWantsMouseInput(DependencyObject, Nullable<Boolean>)
    VisualContainer.SetWantsKeyInput(DependencyObject, Boolean)
    VisualContainer.GetWantsKeyInput(DependencyObject)
    VisualContainer.GetRenderBoundsInherited(DependencyObject)
    VisualContainer.GetRenderBounds(DependencyObject)
    VisualContainer.SetRenderBounds(DependencyObject, Rect)
    VisualContainer.GetParent(DependencyObject)
    VisualContainer.HitTestCore(GeometryHitTestParameters)
    VisualContainer.Dispose()
    VisualContainer.Children
    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 Description
    ScrollAxisBase
    Overrides
    ScrollAxisControl.CreateScrollAxis(Orientation, Boolean, IScrollBar, ILineSizeHost)

    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
    ScrollControl.OnArrangeContent(Size)

    OnCreateAutomationPeer()

    Returns the AutomationPeer class for ScrollControl.

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    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
    ScrollControl.OnMouseMove(MouseEventArgs)
    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.

    Implements

    IScrollBarProvider
    System.Windows.Controls.Primitives.IScrollInfo
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved