Esempio n. 1
0
 public ScrollableTextView(ITextDocument textDocument, ISettings settings,
                           AdvScrollableControl scrollableControl)
     : base(textDocument, settings)
 {
     _scrollableControl = scrollableControl;
     ScrollHost         = this;
 }
Esempio n. 2
0
        public ScrollTest()
        {
            InitializeComponent();

            var textDocument = new TextDocumentByLines();

            textDocument.TextAppendLine("Hello, World!", 0);

            var container = new AdvScrollableControl();
            var textView  = new ScrollableTextView(textDocument, new NoSettings(), container);

            container.Control = textView;
            container.Dock    = DockStyle.Fill;

            Controls.Add(container);
        }