Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
740
CaptionAppearance.TextHAlign property not working?
posted

Hi,

I have a ribbonbar on my form and want to use a contextual tab. I create one with the code below. Turns out that the default alignment of the contextual group caption is left. However when i set the property to aligh it centered, it has no effect.

Am i using the right property? Is there something else i'm missing?

Thx in advance.

Kind regards,
Jacob Iedema 

 

        Dim tabMot As New RibbonTab("&Motor")
        mnuBar.Ribbon.Tabs.Add(tabMot)

        Dim grpMot As New ContextualTabGroup("motor")
        mnuBar.Ribbon.ContextualTabGroups.Add(grpMot)
        grpMot.CaptionAppearance.TextHAlign = HAlign.Center
        grpMot.Caption = "Motor"
        tabMot.ContextualTabGroup = grpMot