ScintillaNet 2.2 Release
2009-10-21 Chris Rickard
Built against changeset 60365
Primarily this is a bugfix release. Only a couple new features are included and they are there becuase they fix/workaround an existing issue.
- All members and strings containing WhiteSpace have been changed to Whitespace. Whitespace is the accepted spelling and is the spelling used by the .NET framework. (Ignore System.Xml.Schema.XmlSchemaWhiteSpace :) Along the same lines INativeScintilla.GetViewWS() changed to INativeScintilla.GetViewWs()
- Various members' access changed from public to private or internal. In these cases it didn't make much sense to expose them publicly so in theory noone should be using them thus this won't break anyones code.
- Most of the EventArg classes changed their properties to be read-only. This is consistent with the style used by the .NET framework. This may potentially break code, initialize all the variables in the constructor where appropriate. If there is a legitimate need to set an EventArg property after construction I'll add it back in.
- Markers and Lines.VisibleLines implementations were buggy and have been fixed. If you were using them before and made workarounds to compensate for the buggy behavior this will most likely break it.
- DwellEnd event changed from EventHandler to EventHandler<ScintillaMouseEventArgs>
- In the static Utilities class PtrToStringUtf8 and MarshalStr have been removed and replaced IntPtrToString
- New property Caption sets the Win32 Window Text/Caption. This was introduced to make an elegant workaround. The Control.Text property is usually used but has proven to be problematic because of ScintillaNet's Text implementation. Also we don't want to load a 100mb file in the document then have Windows try to echo this property, it adds a ton of unneeded overhead. Caption now controls this completely, it defaults to the Scintilla control's Type Name (ScintillaNet.Scintilla unless subclassed) but can be changed.
- UseWhitespaceForeColor/UseWhitespaceBackColor control wether or not the corresponding Whitespace colors are used or inherit from the default style.
- Style class now has an indexer overload that takes a string. The style names are specific to each lexer and can be found in the ScintillaNet project under Configuration/BuiltIn/LexerStyleNames
- SelectionForeColor/SelectionBackColor now supports the Transparent color. When Transparent selection colors don't override styled text colors. While this is inconsistent with other properties like WhitespaceForeColor that have a corresponding UseXXX property I think it's more intuitive and I may change the others in the future. Note that only Transparent is supported, alpha values in any other color are ignored.
Issues fixed with this release