public override void CopyPropertiesFrom(Field fromField) { base.CopyPropertiesFrom(fromField); CustomPageField fromPageField = (CustomPageField)fromField; this.NumberFormattingType = fromPageField.NumberFormattingType; this.documentName.CopyPropertiesFrom(fromPageField.documentName); }
private void InsertCustomFieldInFooter() { RadDocument document = new RadDocument(); RadDocumentEditor editor = new RadDocumentEditor(document); Footer footer = associatedRichTextBox.Document.Sections.First.Footers.Default; footer.Body = document; CustomPageField customPageField = new CustomPageField { NumberFormattingType = NumberFormattingTypes.Latin }; editor.InsertField(customPageField, FieldDisplayMode.Result); }
private void InsertCustomFieldInHeader() { RadDocument document = new RadDocument(); RadDocumentEditor editor = new RadDocumentEditor(document); Header header = associatedRichTextBox.Document.Sections.First.Headers.Default; header.Body = document; CustomPageField customPageField = new CustomPageField { NumberFormattingType = NumberFormattingTypes.Roman, DocumentName = "RadDocument", }; editor.InsertField(customPageField, FieldDisplayMode.Result); }