Cannot find Location or Size Properties of RibbonItems

Posted by: Charles.Jimenez on 29 April 2018, 1:31 pm EST

    • Post Options:
    • Link

    Posted 29 April 2018, 1:31 pm EST

    I am using the C1StatusBar component and I have several RibbonItems in it. I cannot find any property or other way to determine the location of the individual RibbonItems. The RibbonItems themselves do not have Location or Size properties, only the Statusbar.

    How can I determine the location and size of the RibbonItems?

    Thanks,

  • Posted 30 April 2018, 4:55 am EST

    Hi Charles,

    The reason Ribbon items do not have these properties is because they are auto-sized. Their location is adjusted automatically depending on the available space.

    To obtain the current size and location of some ribbon item, use GetItemBounds method of C1Statusbar as follows:```

    c1StatusBar1.GetItemBounds(item)

    Ruchir Agarwal
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels