Request for virtual methods in class Document

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Martin de Jong - Statistics Netherlands
Version: 4.0.0277
Avatar
I am using an inherited version of class Document. This way we can choose the way how codefiles are stored, and available to other components indepently of the use by the syntax editor control. E.g. we can hide parts of text that simulate attributes to tokens.
Sample:

Fields
  A : integer $id:iu247638823$
where the $...$ isnt shown in the editor but still remains in the source.

I would like to have control over/override some methods and properties such as:
  • Text
  • AppendText
  • CaseCorrectText
  • InsertText
  • LoadFile
  • ReplaceText
  • SaveFile
Martin

[Modified at 10/21/2008 08:16 AM]

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Really you are much better off handling the TextChanged event since that fires after most of those things and its event args tells you exactly what changed. This gives you a single place to do your updates. You can override the Document.OnTextChanged method if you like.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.