AnswerCollection Members

The AnswerCollection type exposes the following members.
Constructors

  NameDescription
Public methodAnswerCollection
Default AnswerCollection constructor
Back to Top
Methods

  NameDescription
Public methodClear
Resets the answer collection. All answers are deleted, and the title is set to an empty string.
Public methodCreateAnswer T 
Creates a new answer.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodGetEnumerator
Gets an enumerator to iterate through the answers in the answer collection.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOverlayXml
Reads a TextReader into the answer collection without first clearing existing answers.
Public methodReadFile(Stream)
Reads an answer file from a stream. Since it comes from a stream, the answer file name is empty.
Public methodReadFile(String)
Read an answer file into this answer collection. Store the answer file name in the FilePath property. Currently, the only supported file format is XML.
Public methodReadXml(Stream)
Reads a stream into the answer collection.
Public methodReadXml(TextReader)
Reads a TextReader into the answer collection.
Public methodReadXml(String)
Reads an XML answer file into the answer collection.
Public methodRemoveAnswer
Removes an answer from the answer collection.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTryGetAnswer
Gets the answer for the specified HotDocs variable if it exists in the answer collection.
Public methodWriteFile(Boolean)
Write this answer collection to the file designated by the FilePath property.
Public methodWriteFile(String, Boolean)
Write this answer collection to a file. Store the answer file name in the FilePath property.
Public methodWriteXml(Stream, Boolean)
Writes the answer collection as a HotDocs XML answer file to the output stream.
Public methodWriteXml(TextWriter, Boolean)
Writes the answer collection as a HotDocs XML answer file to the TextWriter.
Back to Top
Properties

  NameDescription
Public propertyAnswerCount
The number of answers in the answer collection. Because HotDocs variables may be repeated, each of these answers may actually contain more than one value.
Public propertyFilePath
Access the path of the file last read from by ReadFile(path) or written to by WriteFile(path).
Public propertyTitle
The title of the answer collection. When the answer collection is serialized as XML, the title appears as an attribute of the root AnswerSet node.
Public propertyVersion
The version number of the answer collection. When the answer collection is serialized as XML, this version number appears as an attribute of the root AnswerSet node.
Public propertyXmlAnswers
An XML string representation of the entire answer collection.
Back to Top
See Also