This may be a long-shot as I don't see it documented anywhere, but can I omit the style tag but still trigger the CssClassExporting event. What I need is to pull the extracted styles into a separate css file. I can parse the files manually if need be, but if there is some combination of configuration options I'm missing here please correct me. Here is what i have at the moment.
HtmlFormatProvider provider = new HtmlFormatProvider();
provider.ExportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;
provider.ExportSettings.StylesExportMode = StylesExportMode.Classes;
provider.ExportSettings.SpanExportMode = SpanExportMode.DefaultBehavior;
provider.ExportSettings.ExportStyleMetadata = true;
// Dont export the document styles
provider.ExportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
// Export font style as style rather than tag
provider.ExportSettings.ExportFontStylesAsTags = false;
// Only create styles which need be
provider.ExportSettings.ExportLocalOrStyleValueSource = true;
provider.ExportSettings.CssClassExporting += ExportSettings_CssClassExporting;
var data = provider.Export(RadDocument);