Class ConstructAction.InputContainer
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
An input object that groups other property entries under one expandable node in the property page of the action. It does not take input itself; the entries to show are provided with SetShowProperties(IPropertyEntry[]) and may be replaced while the action runs (e.g. the split curve action shows one entry per section of the curve). Add it to the action with SetInput(params object[]).
public class ConstructAction.InputContainer : ConstructAction.InputObject
- Inheritance
-
ConstructAction.InputContainer
- Inherited Members
Constructors
InputContainer(string)
Creates an empty container whose caption is the string table entry resourceId.
public InputContainer(string resourceId)
Parameters
resourceIdstringResource id of the caption in the StringTable
Methods
GetShowProperties()
Returns the property entries currently shown in this container, as set by SetShowProperties(IPropertyEntry[]).
public IPropertyEntry[] GetShowProperties()
Returns
- IPropertyEntry[]
The sub-entries of the container, or null if none have been set
Open(bool)
Expands or collapses the container in the property page. Has no effect before the action is displayed.
public void Open(bool open)
Parameters
openbooltrue to show the sub-entries, false to collapse them
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
SetShowProperties(IPropertyEntry[])
Sets the property entries shown as sub-entries of this container, replacing the previous ones. May be called before the action is displayed (the entries are shown when the property page is built) as well as while the action runs, in which case the property page is refreshed.
public void SetShowProperties(IPropertyEntry[] contents)
Parameters
contentsIPropertyEntry[]The entries to show