Answer Members

The Answer type exposes the following members.
Methods

  NameDescription
Public methodApplyValueMutator T 
ApplyValueMutator uses the Visitor design pattern to modify all the values associated with this answer by applying the ValueMutator delegate, in turn, to each value. This can be useful if you want to apply the same modification to all values in an answer, such as marking all of them userModifiable=false.
Public methodClear
Clears the answer.
Public methodDeleteIteration
Deletes an answer at the specified indexes.
Public methodEnumerateValues
EnumerateValues uses the Visitor design pattern to enumerate all the values associated with this answer. For each value that is part of the answer, the supplied state object is passed to the supplied callback method, along with the repeat indices for that value. The callback must be a delegate of type ValueEnumerationDelegate.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodGetAnswered
Indicates whether (or not) a value is available at the indicated repeat indices.
Public methodGetChildCount
Indicates the number of child values at the specified repeat index.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetSiblingCount
Indicates the number of sibling values for the specified repeat index.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetUserModifiable
Indicates whether (or not) a value should be modifiable by the user in the interview UI.
Public methodGetValue( Int32 )
Gets the specified value.
Public methodGetValue T ( Int32 )
This method returns a specific value from an answer.
Public methodInitValue T 
Initializes the value for an answer.
Public methodInsertIteration
Inserts an answer at the specified indexes.
Public methodMoveIteration
Moves an answer value from one repeat index to another.
Public methodSetValue T 
Sets the value for an answer.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodWriteXml
Writes an answer to XML.
Back to Top
Properties

  NameDescription
Public propertyIndexedValues
IndexedValues provides a simple way to enumerate (and potentially modify) the values associated with an answer.
Public propertyIsRepeated
Indicates whether this answer is repeated or not.
Public propertyName
The answer name. Corresponds to a HotDocs variable name.
Public propertySave
When HotDocs saves a collection of answers as an Answer File, this flag determines whether this specific answer will be saved or not. If true (the default), the answer will be saved. If false, this answer will be ignored/dropped and will not be persisted with the rest of the answers in the AnswerCollection.
Public propertyType
The type of value that is stored in this answer.
Public propertyUserExtendible
For answers containing repeated values, indicates whether end users should be allowed to add/delete/move repeat iterations in the interview UI (default is true).
Back to Top
See Also