Browse Source

Set the DesignerSerializationVisibility to hidden for the TextEditorControlBase properties Document and TextEditorProperties. This prevents the forms designer from generating code that cannot be compiled when the text editor control is added to a form at design time.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@790 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
a7c53534e1
  1. 2
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextEditorControlBase.cs

2
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextEditorControlBase.cs

@ -43,6 +43,7 @@ namespace ICSharpCode.TextEditor @@ -43,6 +43,7 @@ namespace ICSharpCode.TextEditor
/// </summary>
protected Dictionary<Keys, IEditAction> editactions = new Dictionary<Keys, IEditAction>();
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public ITextEditorProperties TextEditorProperties {
get {
return document.TextEditorProperties;
@ -101,6 +102,7 @@ namespace ICSharpCode.TextEditor @@ -101,6 +102,7 @@ namespace ICSharpCode.TextEditor
/// The current document
/// </value>
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public IDocument Document {
get {
return document;

Loading…
Cancel
Save