Class QuestionGroup
Represents a group of Question, QuestionGrid, and QuestionBlock items.
Inheritance
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class QuestionGroup : VersionableGroupBase<Question, QuestionGroup>, IVersionableGroup, IVersionable, IIdentifiable, IVisitable, IHasCustomFields, IDescribable
Remarks
The QuestionGroup is unique among groups in that it contains three different types of items: Questions, QuestionGrids, and QuestionBlocks. The inherited Items collection refers to basic Question(Items).
Constructors
QuestionGroup()
Initializes a new instance of the QuestionGroup class.
Declaration
public QuestionGroup()
Properties
ChildTypesAccepted
Gets the child types accepted.
Declaration
public override Collection<Guid> ChildTypesAccepted { get; }
Property Value
Type | Description |
---|---|
Collection<Guid> | The child types accepted. |
Overrides
ItemType
Gets the universally unique identifier representing the item's type.
Declaration
public override Guid ItemType { get; }
Property Value
Type | Description |
---|---|
Guid | The identifier representing the item's type. |
Overrides
QuestionBlocks
Gets a collection of question blocks contained by this group.
Declaration
public ObservableCollection<QuestionBlock> QuestionBlocks { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<QuestionBlock> |
QuestionGrids
Gets a collection of question grids contained by this group.
Declaration
public ObservableCollection<QuestionGrid> QuestionGrids { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<QuestionGrid> |
Methods
AddChild(IVersionable)
Adds the provided child to this item.
Declaration
public override void AddChild(IVersionable child)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | child | The item to be added as a child of this item. |
Overrides
GetChildren()
Gets the item's children.
Declaration
public override ChildItemCollection GetChildren()
Returns
Type | Description |
---|---|
ChildItemCollection | The the item's children. |
Overrides
RemoveChild(IVersionable)
Removes the specified child.
Declaration
public override bool RemoveChild(IVersionable child)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | child | The child to be removed. |
Returns
Type | Description |
---|---|
System.Boolean | The number of children removed from the item. |
Overrides
RemoveChild(IdentifierTriple)
Removes the child.
Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | child | The child. |
Returns
Type | Description |
---|---|
System.Int32 | The number of items removed. |
Overrides
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 |
---|---|
System.Int32 | The number of children replaced. |