utlookk element Text font

3 posts, 1 answers
  1. pierre-jean
    pierre-jean avatar
    38 posts
    Member since:
    Apr 2011

    Posted 07 Mar Link to this post

    I have a Ribbon bar in Outlook view on which I want to change programmatically the font

    I have managed to change the font on the bottom buttons with the following code

            outlookElement = TryCast(pvMain.ViewElement, RadPageViewOutlookElement)
            outlookElement.Font = MyPreference.Font

     

    However the font of the title does not change (see attached image)

    How cant I change the title font as well ?

    thanks

  2. Answer
    Hristo
    Admin
    Hristo avatar
    1028 posts

    Posted 08 Mar Link to this post

    Hi Pierre-Jean,

    Thank you for writing.

    You need to additionally set the font to the header element. Please my code snippet below:
    Dim el As RadPageViewOutlookElement = DirectCast(Me.radPageView1.ViewElement, RadPageViewOutlookElement)
    el.Font = New Font("Arial", 15, FontStyle.Bold)
    el.Header.Font = New Font("Arial", 15, FontStyle.Bold)

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. pierre-jean
    pierre-jean avatar
    38 posts
    Member since:
    Apr 2011

    Posted 09 Mar Link to this post

    Thanks a lot

    it's all OK now

     

Back to Top