MewvalonEdit markup reference
Fluent extensions declared by the Aprillz.MewUI.MewvalonEdit package.
CompletionList
Section titled “CompletionList”Receiver: CompletionList and derived types (where T : CompletionList).
| Method | Sets | Summary |
|---|---|---|
EmptyTemplate(ControlTemplate value) |
EmptyTemplate |
Sets EmptyTemplate. Built and shown in place of the rows while the list has nothing to offer, so a caller can say why. Nothing is shown while this is null, which is what the original documents. The template is applied to a presenter the list owns, so build against ContentControl. |
IsFiltering(bool value = true) |
IsFiltering |
Sets IsFiltering. If true, the list is filtered to show only matching items, and substrings match. If false, the old behavior: no filtering, search by StartsWith. |
OnInsertionRequested(EventHandler<EventArgs> handler) |
event InsertionRequested |
Subscribes handler to InsertionRequested. Raised when the list indicates that the user has chosen an entry to be completed. |
OnSelectionChanged(EventHandler handler) |
event SelectionChanged |
Subscribes handler to SelectionChanged. Occurs when SelectedItem changes. |
SelectedItem(ICompletionData value) |
SelectedItem |
Sets SelectedItem. |
OverloadViewer
Section titled “OverloadViewer”Receiver: OverloadViewer and derived types (where T : OverloadViewer).
| Method | Sets | Summary |
|---|---|---|
Provider(IOverloadProvider value) |
Provider |
Sets Provider. The item provider. The viewer follows its property changes. |
AbstractMargin
Section titled “AbstractMargin”Receiver: AbstractMargin and derived types (where T : AbstractMargin).
| Method | Sets | Summary |
|---|---|---|
TextView(TextView value) |
TextView |
Sets TextView. View this margin sits beside. Setting it runs the connect and disconnect hooks. |
TextEditor
Section titled “TextEditor”Receiver: TextEditor and derived types (where T : TextEditor).
| Method | Sets | Summary |
|---|---|---|
CaretOffset(int value) |
CaretOffset |
Sets the caret position as a character index into the document. |
Document(TextDocument value) |
Document |
Sets the document being edited; never null. |
Encoding(Encoding value) |
Encoding |
Sets the encoding Save writes with; null means UTF-8 without a byte order mark. |
IndentationStrategy(IIndentationStrategy value) |
IndentationStrategy |
Sets the strategy that indents a new line and reindents lines for IndentSelection; null disables both, and the default is DefaultIndentationStrategy. |
IsModified(bool value = true) |
IsModified |
Sets whether the document has changed since it was last marked unmodified. |
IsReadOnly(bool value = true) |
IsReadOnly |
Sets whether the text is read-only; the default is false. |
LineNumbersForeground(Color? value) |
LineNumbersForeground |
Sets the color of the line numbers; null follows the theme. |
OnDocumentChanged(EventHandler handler) |
event DocumentChanged |
Subscribes handler to DocumentChanged. Occurs when Document was replaced, not when its content changed. |
OnIsModifiedChanged(EventHandler handler) |
event IsModifiedChanged |
Subscribes handler to IsModifiedChanged. Occurs after IsModified changed. |
OnOptionChanged(EventHandler<MewProperty> handler) |
event OptionChanged |
Subscribes handler to OptionChanged. Occurs when an option changed, carrying the option that did. |
OnTextChanged(EventHandler handler) |
event TextChanged |
Subscribes handler to TextChanged. Occurs when the document text changed, including when the document was replaced. |
ShowLineNumbers(bool value = true) |
ShowLineNumbers |
Sets whether the line number margin is shown; the default is false. |
SyntaxHighlighting(IHighlightingDefinition value) |
SyntaxHighlighting |
Sets the highlighting definition that colors the text; null shows plain text. |
Text(string value) |
Text |
Sets the document text. |
VerticalScrollBarVisibility(ScrollBarVisibility value) |
VerticalScrollBarVisibility |
Sets when the vertical scrollbar is shown; the default is Auto, and the text scrolls either way. |
WordWrap(bool value = true) |
WordWrap |
Sets whether lines wrap at the viewport width; the default is false. |
FoldingMargin
Section titled “FoldingMargin”Receiver: FoldingMargin.
| Method | Sets | Summary |
|---|---|---|
FoldingManager(FoldingManager value) |
FoldingManager |
Sets FoldingManager. Manager whose foldings the margin shows. Assigned by the installing manager. |
FoldingMarkerBackgroundBrush(Color? value) |
FoldingMarkerBackgroundBrush |
Sets FoldingMarkerBackgroundBrush. Fill of the marker box, which must be opaque. Null follows the theme. |
FoldingMarkerBrush(Color? value) |
FoldingMarkerBrush |
Sets FoldingMarkerBrush. Outline and line colour, which must be opaque. Null follows the theme. |