Show / Hide Table of Contents

Class CustomField

Provides the ability to add information to an existing IVersionable item type, beyond the information built into the item type.

Inheritance
object
NotificationObject
CustomField
Implements
INotifyPropertyChanged
Inherited Members
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class CustomField : NotificationObject, INotifyPropertyChanged

Constructors

CustomField()

Initializes a new instance of the CustomField class.

Declaration
public CustomField()

CustomField(Guid, string, MultilingualString)

Initializes a new instance of the CustomField class.

Declaration
public CustomField(Guid definedTypeId, string fieldTitle, MultilingualString value)
Parameters
Type Name Description
Guid definedTypeId

The identifier of the CustomFieldDefinition on which the custom field is based.

string fieldTitle

The title of the custom field.

MultilingualString value

The value of the custom field.

Properties

BooleanValue

Gets the boolean value stored in the custom field.

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

ControlledVocabularyId

Gets or sets the controlled vocabulary unique identifier.

Declaration
public TypedIdTriple ControlledVocabularyId { get; set; }
Property Value
Type Description
TypedIdTriple

The controlled vocabulary unique identifier.

DateValue

Gets or sets the date value stored in the custom field.

Declaration
public DateTime? DateValue { get; set; }
Property Value
Type Description
DateTime?

The date value stored in the custom field.

DefinedTypeId

The identifier of the CustomFieldDefinition, if one is applicable.

Declaration
public Guid? DefinedTypeId { get; set; }
Property Value
Type Description
Guid?
Remarks

CustomFieldDefinitions define a custom field that may be reused across Colectica installations.

Description

Gets the description of the custom field.

Declaration
public MultilingualString Description { get; }
Property Value
Type Description
MultilingualString
Remarks

The description is displayed as help text when information held in a custom field is displayed.

DisplayLabel

Gets the display label used when a list of CustomField objects is displayed.

Declaration
public string DisplayLabel { get; }
Property Value
Type Description
string

The display label.

HasDefinedType

Gets a value indicating whether this instance is based on a defined custom field type.

Declaration
public bool HasDefinedType { get; }
Property Value
Type Description
bool

true if this instance is based on a defined custom field type; otherwise, false.

HasValue

Gets a value indicating whether has a value.

Declaration
public bool HasValue { get; }
Property Value
Type Description
bool

true if there is a value; otherwise, false.

MultilingualStringValue

Gets the multilingual string value stored in the custom field.

Declaration
public MultilingualString MultilingualStringValue { get; }
Property Value
Type Description
MultilingualString

MultipleRelatedItemIdsValue

Gets or sets the related item unique identifier value.

Declaration
public ObservableCollection<TypedIdTriple> MultipleRelatedItemIdsValue { get; set; }
Property Value
Type Description
ObservableCollection<TypedIdTriple>

The related item unique identifier value.

NumberValue

Gets the number value stored in the custom field.

Declaration
public decimal? NumberValue { get; set; }
Property Value
Type Description
decimal?

RelatedItemIdValue

Gets or sets the related item unique identifier value.

Declaration
public TypedIdTriple RelatedItemIdValue { get; set; }
Property Value
Type Description
TypedIdTriple

The related item unique identifier value.

RelationshipTargetType

Gets or sets the type of the relationship target.

Declaration
public Guid RelationshipTargetType { get; set; }
Property Value
Type Description
Guid

The type of the relationship target.

StringValue

Gets or sets the string value stored in the custom field.

Declaration
public string StringValue { get; set; }
Property Value
Type Description
string

The string value stored in the custom field.

Title

Gets the title of the custom field.

Declaration
public MultilingualString Title { get; }
Property Value
Type Description
MultilingualString
Remarks

The title is treated as the label when information held in a custom field is displayed.

UriValue

Gets or sets the URI value stored in the custom field.

Declaration
public Uri UriValue { get; set; }
Property Value
Type Description
Uri

The URI value stored in the custom field.

ValueType

Gets or sets the type of the value held in the custom field.

Declaration
public CustomFieldType ValueType { get; set; }
Property Value
Type Description
CustomFieldType

The type of the value held in the custom field.

ValueTypes

Gets the value types that can be held by custom fields.

Declaration
public static Array ValueTypes { get; }
Property Value
Type Description
Array

Methods

ToString()

Returns a string representation of the current value

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

WatchProperties()

Watch for property changed events

Declaration
protected override void WatchProperties()
Overrides
NotificationObject.WatchProperties()

Implements

INotifyPropertyChanged

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX