ITextEditor

StockSharp.Xaml.Diagram.GXDiagram.Tool

This interface manages the text editing interaction performed by the TextEditingTool's EditorAdornment.

Properties

Text
public string Text { get; set; }
value = iTextEditor.Text
iTextEditor.Text = value

Gets or sets the current text value being edited.

TextEditingTool
public TextEditingTool TextEditingTool { get; set; }
value = iTextEditor.TextEditingTool
iTextEditor.TextEditingTool = value

Gets or sets the TextEditingTool.

Methods

Focus
public void Focus()
iTextEditor.Focus()

Give focus to the editing control.

IsValidText
public bool IsValidText(string oldstring, string newstring)
result = iTextEditor.IsValidText(oldstring, newstring)

This predicate should be true if the is a valid value.

oldstring
newstring

Events

GotFocus
public event EventHandler GotFocus
iTextEditor.GotFocus += handler

An event indicating that the editing control has gotten focus.