public static CustomPropertyDefinition SingleChoice(string name, int offset = 0, string label = null, params string[] possibleValues) { var result = new CustomPropertyDefinition(SchemaPropertyType.SingleChoice, name, label ?? name, offset, true); result.PossibleValues.AddRange(possibleValues); return(result); }
public PropertySchema AddCustomDefinition(CustomPropertyDefinition definition) { CustomPropertyDefinitions.Add(definition); return(this); }
public static PropertySchema Create(CustomPropertyDefinition customPropertyDefinition) { var result = new PropertySchema(); return(result.AddCustomDefinition(customPropertyDefinition)); }
public CustomProperty(CustomPropertyDefinition definition, object value) { Definition = definition; Value = value; }