# 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.

## Breaking Changes

- 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 Features

- 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

Issue # | Title
--- | ---
11811 | ScintillaNet in MDIChild destroys after Hide() - WM_DESTROY
21730 | InsertSnippet
24622 | Some Fixes
20491 | Scintilla.Encoding Can Be Out-Of-Sync With Internal Scintilla Code Page
20097 | Dispose method throws Win32Exception
10105 | Drag Drop events are never fired
18351 | Possible bug on japanese OS
18281 | Throw OutOfMemoryException when open large file
21053 | TextChanged Event Should Behave Like Other Controls
18445 | Reset of 'transparency' for selection fore color
18554 | BindableCommand.WordPartLeft not mapped to keystroke
20397 | ConfigurationManager :: getCustomConfigPath uses wrong variable
21678 | VisibleLines broken
24777 | Default font "Arial" throws exception from PageInformation
21729 | PreviousActiveSnippetLink
24911 | Problems with Markers
17869 | SearchFlags ignored
18028 | DwellEnd event
18297 | NullReferenceException