Show / Hide Table of Contents

Class Checkbox

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
QuestionBase
Checkbox
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IChoosable
IRequired
IHasOtherOption
Inherited Members
QuestionBase.GetId()
QuestionBase.GetIndex()
QuestionBase.SetIndex(int)
QuestionBase.GetTitle()
QuestionBase.SetTitle(string)
QuestionBase.GetDescription()
QuestionBase.SetDescription(string)
QuestionBase.GetQuestionType()
QuestionBase.SetFormId(Guid)
QuestionBase.SetRequired(bool)
QuestionBase.SetOtherOption(bool)
QuestionBase.TenantId
QuestionBase.FormId
QuestionBase.Index
QuestionBase.Title
QuestionBase.Description
FullAuditedAggregateRoot<Guid>.IsDeleted
FullAuditedAggregateRoot<Guid>.DeleterId
FullAuditedAggregateRoot<Guid>.DeletionTime
AuditedAggregateRoot<Guid>.LastModificationTime
AuditedAggregateRoot<Guid>.LastModifierId
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Forms.Questions.ChoosableItems
Assembly: Volo.Forms.Domain.dll
Syntax
[QuestionType(QuestionTypes.Checkbox)]
public class Checkbox : QuestionBase, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant, IChoosable, IRequired, IHasOtherOption

Constructors

Checkbox()

Declaration
protected Checkbox()

Checkbox(Guid, Guid?)

Declaration
public Checkbox(Guid id, Guid? tenantId = null)
Parameters
Type Name Description
Guid id
Guid? tenantId

Properties

Choices

Declaration
public virtual Collection<Choice> Choices { get; }
Property Value
Type Description
Collection<Choice>

HasOtherOption

Declaration
public virtual bool HasOtherOption { get; set; }
Property Value
Type Description
bool

IsRequired

Declaration
public virtual bool IsRequired { get; set; }
Property Value
Type Description
bool

Methods

AddChoice(Guid, int, string, bool, Guid?)

Declaration
public void AddChoice(Guid id, int index, string value, bool isCorrect = false, Guid? tenantId = null)
Parameters
Type Name Description
Guid id
int index
string value
bool isCorrect
Guid? tenantId

AddChoice(Guid, string, bool, Guid?)

Declaration
public void AddChoice(Guid id, string value, bool isCorrect = false, Guid? tenantId = null)
Parameters
Type Name Description
Guid id
string value
bool isCorrect
Guid? tenantId

AddChoiceOther(Guid, int)

Declaration
public void AddChoiceOther(Guid id, int index = 0)
Parameters
Type Name Description
Guid id
int index

AddChoices(List<(Guid id, string value, bool isCorrect)>, Guid?)

Declaration
public void AddChoices(List<(Guid id, string value, bool isCorrect)> choices, Guid? tenantId = null)
Parameters
Type Name Description
List<(Guid Id, string value, bool isCorrect)> choices
Guid? tenantId

ClearChoices()

Declaration
public void ClearChoices()

GetChoices()

Declaration
public ICollection<Choice> GetChoices()
Returns
Type Description
ICollection<Choice>

MoveChoice(Guid, int)

Declaration
public void MoveChoice(Guid choiceId, int newIndex)
Parameters
Type Name Description
Guid choiceId
int newIndex

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IChoosable
IRequired
IHasOtherOption

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform