Hi,
I would like to create a new style with the All Caps Font Effect enabled in my Word document (refer to the attached image).
How can I do this programmatically?
I was expecting to be able to do it like this, but I cannot find any property to set the All Caps.
var document = new RadFlowDocument();
var style = new Style("ALL_CAPS", StyleType.Paragraph)
{
Name = "ALL_CAPS",
BasedOnStyleId = BuiltInStyleNames.NormalStyleId
};
style.CharacterProperties.AllCaps.LocalValue = true;
document.StyleRepository.Add(style);
Thank you