Download data/DWSIM.Controls.IronPythonConsole/ConsoleOptions.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 2.35 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.IronPythonConsole/ConsoleOptions.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Controls.IronPythonConsole/ConsoleOptions.cs
-
curl -L -o ConsoleOptions.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.IronPythonConsole/ConsoleOptions.cs
2.35 kB
| // Copyright (c) 2010 Joe Moorhouse | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.ComponentModel; | |
| using ICSharpCode.AvalonEdit; | |
| using System.Windows.Media; | |
| using PythonConsoleControl; | |
| namespace IronPythonConsole | |
| { | |
| public class ConsoleOptions | |
| { | |
| TextEditor textEditor; | |
| PythonConsolePad pad; | |
| public ConsoleOptions(PythonConsolePad pad) | |
| { | |
| this.textEditor = pad.Control; | |
| this.pad = pad; | |
| } | |
| [] | |
| public bool ShowSpaces | |
| { | |
| get { return textEditor.TextArea.Options.ShowSpaces; } | |
| set { textEditor.TextArea.Options.ShowSpaces = value; } | |
| } | |
| [] | |
| public bool ShowTabs | |
| { | |
| get { return textEditor.TextArea.Options.ShowTabs; } | |
| set { textEditor.TextArea.Options.ShowTabs = value; } | |
| } | |
| [] | |
| public bool AllowScrollBelowDocument | |
| { | |
| get { return textEditor.TextArea.Options.AllowScrollBelowDocument; } | |
| set { textEditor.TextArea.Options.AllowScrollBelowDocument = value; } | |
| } | |
| [] | |
| public string FontFamily | |
| { | |
| get { return textEditor.TextArea.FontFamily.ToString(); } | |
| set { textEditor.TextArea.FontFamily = new FontFamily(value); } | |
| } | |
| [] | |
| public double FontSize | |
| { | |
| get { return textEditor.TextArea.FontSize; } | |
| set { textEditor.TextArea.FontSize = value; } | |
| } | |
| [] | |
| public bool FullAutocompletion | |
| { | |
| get { return pad.Console.AllowFullAutocompletion; } | |
| set { pad.Console.AllowFullAutocompletion = value; } | |
| } | |
| [] | |
| public bool CtrlSpaceAutocompletion | |
| { | |
| get { return pad.Console.AllowCtrlSpaceAutocompletion; } | |
| set { pad.Console.AllowCtrlSpaceAutocompletion = value; } | |
| } | |
| [] | |
| public bool DisableAutocompletionForCallables | |
| { | |
| get { return pad.Console.DisableAutocompletionForCallables; } | |
| set { pad.Console.DisableAutocompletionForCallables = value; } | |
| } | |
| } | |
| } | |