Property Scrolling
Scrolling
Represents an object that implements IScrolling
interface containing properties and methods that describe scrolling behavior of the control.
public IScrolling Scrolling { get; }
Property Value
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
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.