Create a Style with All Caps

1 Answer 19 Views
WordsProcessing
Francois
Top achievements
Rank 1
Francois asked on 19 Dec 2023, 07:08 PM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Dec 2023, 10:55 AM

Hello, Francois,

We already have a similar feature request for All Caps support in the WordsProcessing library. You can track its progress, subscribe for status changes, and add your comments on the following link : WordsProcessing: Add support for All Caps and Small Caps.

I apologize for the inconvenience this missing functionality might be causing you. The best I can offer you, in this case, is to subscribe to track the progress by receiving notifications about any status updates. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
WordsProcessing
Asked by
Francois
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or