Class ConstructAction.EditInput
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Defines an input object for an action derived from ConstructAction. This input object extpects the user to enter a string in a edit field and is connected to a Text object to provide wysiwyg editing. Pressing enter or TAB or clicking the mouse proceeds to the next input object.
public class ConstructAction.EditInput : ConstructAction.InputObject
- Inheritance
-
ConstructAction.EditInput
- Inherited Members
Constructors
EditInput(Text)
Creates a EditInput object
public EditInput(Text theText)
Parameters
theTextTextthe Text object it is connected with
Properties
ForwardMouseInputTo
Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.
public object ForwardMouseInputTo { get; set; }
Property Value
Value
The current text of the Text object this input is connected with.
public string Value { get; }
Property Value
Methods
ForceValue(string)
public void ForceValue(string val)
Parameters
valstringthe new text
SetError(string)
Shows errorMessage as an error on the entry of this input in the property page, e.g. when
the value entered by the user is not acceptable for the action. The default implementation does nothing; inputs
with an edit field forward the message to their property entry, inputs without one ignore it.
public override void SetError(string errorMessage)
Parameters
errorMessagestringThe text to display, or an empty string to clear the error
Events
InputValueChangedEvent
Event will be rasied if the Length property changed
public event ConstructAction.EditInput.InputValueChangedDelegate InputValueChangedEvent