Request for virtual methods in class Document

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Martin de Jong - Statistics Netherlands
Version: 4.0.0277
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.

  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

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

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.