public void Dispose() { if (_renderVxFormattedString != null) { _renderVxFormattedString.Dispose(); _renderVxFormattedString = null; } }
//each editable run has it own (dynamic) char buffer void SetNewContent(char[] newbuffer) { #if DEBUG _dbugmybuffer = newbuffer; #else _mybuffer = newbuffer; #endif _content_unparsed = true; _renderVxFormattedString?.Dispose(); //clear old _renderVxFormattedString _renderVxFormattedString = null; }