Click or drag to resize

ChoicePair Class

In a ChoiceWidgetAnnotation, it is possible to have either a list of choices which will be used both for display and for exporting data, or a list of pairs where one element is used for display and the other element is used for exporting data. For example, you might create a survey where a ChoiceWidgetAnnotation displays "Best - Would Purchase Again", "Good - Satisfactory", "Poor - Would Not Purchase Again". These are wordy and might not be suitable for a data consumer, so you could instead associate export names with each choice: "Best", "Good", "Poor". You could also create surveys for other languages by putting the target language in the display name and a language neutral name in the export name.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.Generating.AnnotationsChoicePair

Namespace:  Atalasoft.PdfDoc.Generating.Annotations
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class ChoicePair

The ChoicePair type exposes the following members.

Constructors
  NameDescription
Public methodChoicePair(String)
Initializes a new instance of the ChoicePair class. ExportName will be null.
Public methodChoicePair(String, String)
Initializes a new instance of the ChoicePair class.
Top
Properties
  NameDescription
Public propertyDisplayName
Gets or sets the display name - must be non-null.
Public propertyExportName
Gets or sets the name for export. Setting to null means that DisplayName will be used for export.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also