I need to set the format on a datafield in a pivot table . I see examples on setting conditional formatting when you hard-code a range. I'm unable to find examples for a datafield nor find a way to get the range from an iPivotField.
It was easy in COM - get the range and set the formatting:
chRange = chPivotTable:DataFields("<data field name>"):dataRangeHow would I do this using Sycfusion XlsIO? All the examples I'm finding have a hard-coded range:
IConditionalFormats conditionalFormats = worksheet.Range["C7:C46"].ConditionalFormats;
IConditionalFormat conditionalFormat = conditionalFormats.AddCondition();
Thanks!