• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    Scrolling Property

    Scrolling

    Represents an object that implements IScrolling interface containing properties and methods that describe scrolling behavior of the control.

    Declaration
    public IScrolling Scrolling { get; }
    Property Value
    Type Description
    IScrolling
    Remarks

    Scrolling specifies the appearance of the TextEditor control's scrollbars and provides additional options such as displaying Annotations, split buttons, or custom scrolling buttons.

    Examples

    Here is how to use a Scrolling in the C# code:

    public partial class MainWindow : Window
    {
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var textEditor = new Alternet.Editor.Wpf.TextEditor();
            textEditor.LoadFile("myfile.txt");
            textEditor.Scrolling.Options = Alternet.Editor.Wpf.ScrollingOptions.AllowSplitVert | Alternet.Editor.Wpf.ScrollingOptions.AllowSplitHorz | Alternet.Editor.Wpf.ScrollingOptions.ShowScrollHint | Alternet.Editor.Wpf.ScrollingOptions.VerticalScrollBarAnnotations;
            textEditor.Scrolling.Annotations.EnabledAnnotationKinds = Alternet.Editor.Wpf.ScrollBarAnnotationKinds.Bookmark | Alternet.Editor.Wpf.ScrollBarAnnotationKinds.Error | Alternet.Editor.Wpf.ScrollBarAnnotationKinds.SearchResult;
        }
    }
    

    Here is how to use a Scrolling in the Visual Basic code:

    Partial Public Class MainWindow
    
        Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
            Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
            textEditor.LoadFile("myfile.txt")
            textEditor.Scrolling.Options = Alternet.Editor.Wpf.ScrollingOptions.AllowSplitVert Or Alternet.Editor.Wpf.ScrollingOptions.AllowSplitHorz Or Alternet.Editor.Wpf.ScrollingOptions.ShowScrollHint Or Alternet.Editor.Wpf.ScrollingOptions.VerticalScrollBarAnnotations
            textEditor.Scrolling.Annotations.EnabledAnnotationKinds = Alternet.Editor.Wpf.ScrollBarAnnotationKinds.Bookmark Or Alternet.Editor.Wpf.ScrollBarAnnotationKinds.[Error] Or Alternet.Editor.Wpf.ScrollBarAnnotationKinds.SearchResult
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF