Gets or sets text that is between the field separator and field end.
Syntax
public string Result { get; set; }
Public Property Result As String
Get
Set
public:
property String^ Result {
String^ get ();
void set (String^ value);
}
member Result : string with get, set
Property Value
Type:
String
Examples
Shows how to insert a field into a document using a field code.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Field field = builder.InsertField("DATE \\@ \"dddd, MMMM dd, yyyy\"");
Assert.AreEqual(FieldType.FieldDate, field.Type);
Assert.AreEqual("DATE \\@ \"dddd, MMMM dd, yyyy\"", field.GetFieldCode());
Assert.That(DateTime.Parse(field.Result), Is.EqualTo(DateTime.Today).Within(1).Days);
See Also