How to become crazy with RichtextEditorRibbonBar

2 posts, 0 answers
  1. bouly
    bouly avatar
    1 posts
    Member since:
    Oct 2012

    Posted 29 Apr 2015 Link to this post

    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 ?

     

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 04 May 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top