FieldData

FieldStart.FieldData property

Gets custom field data which is associated with the field.

public byte[] FieldData { get; }

Examples

Shows how to get data associated with the field.

Document doc = new Document(MyDir + "Field sample - Field with data.docx");

Field field = doc.Range.Fields[2];
Console.WriteLine(Encoding.Default.GetString(field.Start.FieldData));

See Also