public InternalTextLayerController( TextEditRenderBox visualTextSurface, EditableTextFlowLayer textLayer) { this.visualTextSurface = visualTextSurface; textLineWriter = new TextLineWriter(textLayer); backGroundTextLineWriter = textLineWriter.GetBackgroundWriter(); commandHistory = new DocumentCommandCollection(this); this.textMan = new TextMan(this, visualTextSurface); #if DEBUG if (dbugEnableTextManRecorder) { dbugTextManRecorder = new dbugMultiTextManRecorder(); textLineWriter.dbugTextManRecorder = dbugTextManRecorder; throw new NotSupportedException(); dbugTextManRecorder.Start(null); } #endif }