private static ITextEditorProperties InitializeProperties() { var properties = new DefaultTextEditorProperties(); properties.Font = new Font("Consolas", 8, FontStyle.Regular); properties.IndentStyle = IndentStyle.Smart; properties.ShowSpaces = false; properties.LineTerminator = Environment.NewLine; properties.ShowTabs = false; properties.ShowInvalidLines = false; properties.ShowEOLMarker = false; properties.TabIndent = 2; properties.CutCopyWholeLine = true; properties.LineViewerStyle = LineViewerStyle.None; properties.MouseWheelScrollDown = true; properties.MouseWheelTextZoom = true; properties.AllowCaretBeyondEOL = false; properties.AutoInsertCurlyBracket = true; properties.BracketMatchingStyle = BracketMatchingStyle.After; properties.ConvertTabsToSpaces = false; properties.ShowMatchingBracket = true; properties.EnableFolding = true; properties.ShowVerticalRuler = false; properties.IsIconBarVisible = true; properties.Encoding = System.Text.Encoding.Unicode; // properties.UseAntiAliasedFont = false; return(properties); }
private static ITextEditorProperties InitializeProperties() { var properties = new DefaultTextEditorProperties { Font = new Font("Courier new", 9, FontStyle.Regular), IndentStyle = IndentStyle.Smart, ShowSpaces = false, LineTerminator = Environment.NewLine, ShowTabs = false, ShowInvalidLines = false, ShowEOLMarker = false, TabIndent = 2, CutCopyWholeLine = true, LineViewerStyle = LineViewerStyle.None, MouseWheelScrollDown = true, MouseWheelTextZoom = true, AllowCaretBeyondEOL = false, AutoInsertCurlyBracket = true, BracketMatchingStyle = BracketMatchingStyle.After, ConvertTabsToSpaces = false, ShowMatchingBracket = true, EnableFolding = true, ShowVerticalRuler = false, IsIconBarVisible = true, Encoding = Encoding.Unicode }; return(properties); }
private ITextEditorProperties InitializeProperties() { DefaultTextEditorProperties properties = new DefaultTextEditorProperties(); properties.Font = new Font(FontFamily.GenericMonospace.Name, 10); properties.IndentStyle = IndentStyle.Auto; properties.ShowSpaces = false; properties.LineTerminator = "\n"; properties.ShowTabs = false; properties.ShowInvalidLines = false; properties.ShowEOLMarker = false; properties.UseAntiAliasedFont = true; properties.TabIndent = 3; properties.CutCopyWholeLine = true; properties.LineViewerStyle = LineViewerStyle.None; properties.MouseWheelScrollDown = true; properties.MouseWheelTextZoom = true; properties.AllowCaretBeyondEOL = false; properties.AutoInsertCurlyBracket = true; properties.BracketMatchingStyle = BracketMatchingStyle.After; properties.ConvertTabsToSpaces = false; properties.ShowMatchingBracket = true; properties.EnableFolding = true; properties.ShowVerticalRuler = false; properties.IsIconBarVisible = false; properties.Encoding = Encoding.Unicode; return(properties); }
public f_main() { InitializeComponent(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(f_main)); DefaultHighlightingStrategy defaultHighlightingStrategy1 = new DefaultHighlightingStrategy(); DefaultTextEditorProperties defaultTextEditorProperties1 = new DefaultTextEditorProperties(); this.Code_TextEditorControl = new ICSharpCode.TextEditor.TextEditorControl { Anchor = (((((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right))), Encoding = ((Encoding)(resources.GetObject("Code_TextEditorControl.Encoding"))), Location = new System.Drawing.Point(300, 239), Name = "Code_TextEditorControl", ShowEOLMarkers = true, ShowSpaces = true, ShowTabs = true, ShowVRuler = true, Size = new System.Drawing.Size(1050, 500), TabIndex = 4, TextEditorProperties = defaultTextEditorProperties1 }; defaultHighlightingStrategy1.Extensions = new string[0]; defaultTextEditorProperties1.AllowCaretBeyondEOL = false; defaultTextEditorProperties1.AutoInsertCurlyBracket = true; defaultTextEditorProperties1.BracketMatchingStyle = BracketMatchingStyle.After; defaultTextEditorProperties1.ConvertTabsToSpaces = false; defaultTextEditorProperties1.CreateBackupCopy = false; defaultTextEditorProperties1.DocumentSelectionMode = DocumentSelectionMode.Normal; defaultTextEditorProperties1.EnableFolding = true; defaultTextEditorProperties1.Encoding = ((System.Text.Encoding)(resources.GetObject("defaultTextEditorProperties1.Encoding"))); defaultTextEditorProperties1.Font = new System.Drawing.Font("Courier New", 10F); defaultTextEditorProperties1.HideMouseCursor = false; defaultTextEditorProperties1.IndentStyle = IndentStyle.Smart; defaultTextEditorProperties1.IsIconBarVisible = true; defaultTextEditorProperties1.LineTerminator = "\r\n"; defaultTextEditorProperties1.LineViewerStyle = LineViewerStyle.None; defaultTextEditorProperties1.MouseWheelScrollDown = true; defaultTextEditorProperties1.MouseWheelTextZoom = true; defaultTextEditorProperties1.ShowEOLMarker = true; defaultTextEditorProperties1.ShowHorizontalRuler = false; defaultTextEditorProperties1.ShowInvalidLines = true; defaultTextEditorProperties1.ShowLineNumbers = true; defaultTextEditorProperties1.ShowMatchingBracket = true; defaultTextEditorProperties1.ShowSpaces = true; defaultTextEditorProperties1.ShowTabs = true; defaultTextEditorProperties1.ShowVerticalRuler = true; defaultTextEditorProperties1.TabIndent = 4; defaultTextEditorProperties1.UseAntiAliasedFont = false; defaultTextEditorProperties1.UseCustomLine = false; defaultTextEditorProperties1.VerticalRulerRow = 80; this.Controls.Add(this.Code_TextEditorControl); this.Code_TextEditorControl.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#"); this.Code_TextEditorControl.Encoding = Encoding.Default; autoConfigSetting = new AutoConfigSetting(); }
private void Form1_Load(object sender, EventArgs e) { var resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); var defaultTextEditorProperties1 = new DefaultTextEditorProperties { AllowCaretBeyondEOL = false, AutoInsertCurlyBracket = true, BracketMatchingStyle = BracketMatchingStyle.After, ConvertTabsToSpaces = false, DocumentSelectionMode = DocumentSelectionMode.Normal, EnableFolding = true, Encoding = ((System.Text.Encoding)(resources.GetObject("defaultTextEditorProperties1.Encoding"))), Font = new System.Drawing.Font("Courier New", 10F), HideMouseCursor = false, IndentStyle = IndentStyle.Smart, IsIconBarVisible = true, LineTerminator = "\r\n", LineViewerStyle = LineViewerStyle.None, MouseWheelScrollDown = true, MouseWheelTextZoom = true, ShowEOLMarker = true, ShowHorizontalRuler = false, ShowInvalidLines = true, ShowLineNumbers = true, ShowMatchingBracket = true, ShowSpaces = true, ShowTabs = true, ShowVerticalRuler = true, TabIndent = 4, VerticalRulerRow = 80, }; this.textEditorControl1.TextEditorProperties = defaultTextEditorProperties1; this.textEditorControl1.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#"); this.textEditorControl1.Encoding = Encoding.Default; //this.textEditorControl1.Text = $@" //using ICSharpCode.TextEditor.Document; //using System; //using System.Collections.Generic; //using System.ComponentModel; //using System.Data; //using System.Drawing; //using System.Linq; //using System.Text; //using System.Threading.Tasks; //using System.Windows.Forms; "; var tables = _entityProvrder.GetTabses().ToArray(); this.listBox1.Items.AddRange(tables); }
public SettingsCollection() { settings = new Dictionary <string, object>(); defaultSettings = new DefaultTextEditorProperties(); }