DateField
Displays the current date and time using DateTimeFormatting.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DateField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldDateField
Implements:
Inherited Members
Constructors
Creates a DATE field whose result is based on the current date and time.
public DateField()
Fields
Properties
Gets or sets the calendar-specific switch written to field code. This setting does not alter the result calculation, which formats Now using DateTimeFormatting.
[XamlSerializable(null)]
public CalendarTypes? CalendarType { get; set; }
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected override void BuildCodeOverride()
Overrides:
Copies all properties from another field of the same type.
public override void CopyPropertiesFrom(Field fromField)
The other field, which has to be of the same type as the current instance.
Overrides:
Copies the field-specific properties from a FieldCodeExpression.
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Overrides:
Creates a new instance of the current field class.
Builds the result fragment of the field.
protected override DocumentFragment GetResultFragment()
The result fragment.
Overrides: