Class ScaleDomain
Represents a response on a scale to be collected by a Question.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class ScaleDomain : ResponseDomain, INotifyPropertyChanged
Remarks
Currently this class only supports a single dimension scale.
Constructors
ScaleDomain()
Initializes a new instance of the ScaleDomain class.
Declaration
public ScaleDomain()
Properties
Anchors
Labels for certain points on the scale. For example, (1=Poor, 5=Indifferent, 10=Great)
Declaration
public ObservableCollection<Anchor> Anchors { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Anchor> |
DisplayLayout
Defines how the scale should be displayed, for example "line" or "list". Can be a controlled vocabulary.
Declaration
public CodeValue DisplayLayout { get; set; }
Property Value
Type | Description |
---|---|
CodeValue |
High
The ending point of the scale.
Declaration
public decimal? High { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
Low
The starting point of the scale.
Declaration
public decimal? Low { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
MarkedIncrement
The interval beween tick marks when the scale is visualized.
Declaration
public decimal? MarkedIncrement { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
ValueIncrement
The interval between displayed values when the scale is visualized.
Declaration
public decimal? ValueIncrement { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
Methods
GetChildren()
Gets the identifiers of the item's children.
Declaration
public override ChildItemCollection GetChildren()
Returns
Type | Description |
---|---|
ChildItemCollection | The identifiers of the item's children. |
Overrides
RemoveChild(IdentifierTriple)
Removes the specified child.
Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | child | The child to be removed. |
Returns
Type | Description |
---|---|
int | The number of children removed from the item. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | child |
ReplaceChild(IdentifierTriple, IVersionable)
Replaces the child with the specified identifier with the provided item.
Declaration
public override int ReplaceChild(IdentifierTriple toReplace, IVersionable child)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | toReplace | The identifier of the child to replace. |
IVersionable | child | The new child. |
Returns
Type | Description |
---|---|
int | The number of children replaced. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | child |
WatchProperties()
Watch for property changed events
Declaration
protected override void WatchProperties()