The AnswerCollection type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | AnswerCollection |
Default AnswerCollection constructor
|
Methods
Name | Description | |
---|---|---|
![]() | Clear |
Resets the answer collection. All answers are deleted, and the title is set to an empty string.
|
![]() | CreateAnswer T |
Creates a new answer.
|
![]() | ![]() | (Inherited from ![]() |
![]() | GetEnumerator |
Gets an enumerator to iterate through the answers in the answer collection.
|
![]() | ![]() | Serves as a hash function for a particular type. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | OverlayXml |
Reads a TextReader into the answer collection without first clearing existing answers.
|
![]() | ReadFile(Stream) |
Reads an answer file from a stream. Since it comes from a stream, the answer file name is empty.
|
![]() | ReadFile(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.
|
![]() | ReadXml(Stream) |
Reads a stream into the answer collection.
|
![]() | ReadXml(TextReader) |
Reads a TextReader into the answer collection.
|
![]() | ReadXml(String) |
Reads an XML answer file into the answer collection.
|
![]() | RemoveAnswer |
Removes an answer from the answer collection.
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | TryGetAnswer |
Gets the answer for the specified HotDocs variable if it exists in the answer collection.
|
![]() | WriteFile(Boolean) |
Write this answer collection to the file designated by the FilePath property.
|
![]() | WriteFile(String, Boolean) |
Write this answer collection to a file. Store the answer file name in the FilePath property.
|
![]() | WriteXml(Stream, Boolean) |
Writes the answer collection as a HotDocs XML answer file to the output stream.
|
![]() | WriteXml(TextWriter, Boolean) |
Writes the answer collection as a HotDocs XML answer file to the TextWriter.
|
Properties
Name | Description | |
---|---|---|
![]() | AnswerCount |
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.
|
![]() | FilePath |
Access the path of the file last read from by ReadFile(path) or written to by WriteFile(path).
|
![]() | Title |
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.
|
![]() | Version |
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.
|
![]() | XmlAnswers |
An XML string representation of the entire answer collection.
|
See Also