Пример #1
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public ExtendedRichTextBox()
        {
            this.pixelsPerDialogUnit = TextBoxUtility.CalcPixelsPerDialogUnit(this);

            // By default, most RichTextBoxes just need to paste in
            // text (not objects, images, formatted text, etc.).
            this.PasteTextOnly = true;
        }
Пример #2
0
 /// <summary>
 /// Called when the font has changed.
 /// </summary>
 /// <param name="e">The event arguments.</param>
 protected override void OnFontChanged(EventArgs e)
 {
     base.OnFontChanged(e);
     this.pixelsPerDialogUnit = TextBoxUtility.HandleFontChanged(this, this.tabSpaces);
 }
Пример #3
0
        public bool GotoLine(int lineNumber, bool selectLine)
        {
            bool result = TextBoxUtility.GotoLine(this, lineNumber, selectLine);

            return(result);
        }
Пример #4
0
        public bool Scroll(int horizontalChars, int verticalLines)
        {
            bool result = TextBoxUtility.Scroll(this, horizontalChars, verticalLines);

            return(result);
        }
Пример #5
0
        public int GetLineFromChar(int characterIndex)
        {
            int result = TextBoxUtility.GetLineFromChar(this, characterIndex);

            return(result);
        }
Пример #6
0
        public int GetLineLength(int lineNumber)
        {
            int result = TextBoxUtility.GetLineLength(this, lineNumber);

            return(result);
        }