I know there must be a way to set the font of the page numbers generated by PageField, but I can't figure it out. Also, there are 3 formatting strings, but I can't find any documentation on how they are used.
2 Answers, 1 is accepted
answered on 01 Aug 2012, 05:31 PM
The setting of the style of the fields is indeed not very intuitive. What you can do is create a span with the desired formatting and add it between the field start and field end. It will be used by the field to retrieve the formatting, but the value of the text will be overwritten in order to show the result of the field:
Paragraph paragraph = new Paragraph();
PageField pageField = new PageField()
DisplayMode = FieldDisplayMode.Result
FieldRangeStart pageFieldStart = new FieldRangeStart();
As for the other matter, I believe you are refering to PageFields' properties DateTimeFormatting, NumericFormatting and GeneralFormatting. They are used mostly internally or when implementing a custom Field and can't be used for styling the page field.
the Telerik team