Class RuleField
- Namespace
- Dynamicweb.Content.Items.Queries.Rules
- Assembly
- Dynamicweb.dll
Smart filter rule field
public sealed class RuleField
- Inheritance
-
RuleField
- Inherited Members
Constructors
RuleField()
Initializes a new instance of an object.
public RuleField()
RuleField(string, string, string, IRuleFieldDatasource, RuleControlType)
Initializes a new instance of an object.
public RuleField(string id, string name, string typeName, IRuleFieldDatasource dataSource = null, RuleControlType controlType = RuleControlType.TextBox)
Parameters
id
stringname
stringA list of all possible values.
typeName
stringA list of all possible values.
dataSource
IRuleFieldDatasourceA smart field datasource .
controlType
RuleControlTypeA custom control type.
RuleField(string, string, string, RuleControlType)
Initializes a new instance of an object.
public RuleField(string id, string name, string typeName, RuleControlType controlType)
Parameters
id
stringname
stringA list of all possible values.
typeName
stringA list of all possible values.
controlType
RuleControlTypeA custom control type.
Properties
ControlType
Gets or sets the smart search control type
public RuleControlType ControlType { get; set; }
Property Value
DataSource
Gets or sets the reference to a data source that is used for providing a list of possible values.
public IRuleFieldDatasource DataSource { get; set; }
Property Value
ID
Gets or sets the field id.
public string ID { get; set; }
Property Value
IsEmpty
Check is empty object
public bool IsEmpty { get; }
Property Value
Name
Gets or sets the field name.
public string Name { get; set; }
Property Value
ShortTypeName
Gets or sets the short field type name.
public string ShortTypeName { get; }
Property Value
TypeName
Gets or sets the field type name.
public string TypeName { get; set; }
Property Value
UseDateControlWithoutTime
Gets or sets the field _useDateControlWithoutTime.
public bool UseDateControlWithoutTime { get; set; }