This is a migrated thread and some comments may be shown as answers.

How to become crazy with RichtextEditorRibbonBar

1 Answer 77 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
bouly
Top achievements
Rank 1
bouly asked on 29 Apr 2015, 11:22 AM

I've tried all these option to change the localization of the styles

            ((Telerik.WinControls.UI.RichTextEditorRibbonUI.StyleGalleryItem)(this.richTextEditorRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(1))).ToolTipText = "Titre 1";
            ((Telerik.WinControls.UI.RichTextEditorRibbonUI.StyleGalleryItem)(this.richTextEditorRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(1))).Image = ((System.Drawing.Image)(resources.GetObject("resource.Image3")));
            ((Telerik.WinControls.UI.RichTextEditorRibbonUI.StyleGalleryItem)(this.richTextEditorRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(1))).TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            ((Telerik.WinControls.UI.RichTextEditorRibbonUI.StyleGalleryItem)(this.richTextEditorRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(1))).TextAlignment = System.Drawing.ContentAlignment.BottomCenter;
            ((Telerik.WinControls.UI.RichTextEditorRibbonUI.StyleGalleryItem)(this.richTextEditorRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(0).GetChildAt(4).GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(1))).Text = "Titre 1";

The style still stay as "heading 1" .

 

Please would you help ?

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 May 2015, 06:00 AM
Hi Bouly,

Thank you for writing.

Currently the RichTextEditorRibbonBar does not have localization provider. We have a feature request for this in our Feedback Portal. You can track the item for status changes and add your vote for it here.

In this case the styles names are document specific and you can change their names in code:
RadDocument doc = new RadDocument();
doc.StyleRepository["Normal"].DisplayName = "Custom Name 2";
radRichTextEditor1.Document = doc;

I hope this helps. Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
RichTextEditor
Asked by
bouly
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or