Пример #1
0
        Point IRibbonItemContainerServices.GetLocationInScreen(RibbonItemContainer container)
        {
            Point       pc    = this.callback.GetLocationInScreen(this);
            RibbonGroup group = (RibbonGroup)container;
            Point       pg    = group.TabPanel.GetGroupBounds(group).Location;

            return(new Point(pc.X + pg.X, pc.Y + pg.Y));
        }
Пример #2
0
 Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container)
 {
     return(new Rectangle(0, 0, this.RibbonContainerSize.Width, this.RibbonContainerSize.Height));
 }
Пример #3
0
        Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container)
        {
            RibbonGroup group = (RibbonGroup)container;

            return(group.TabPanel.GetGroupBounds(group));
        }
Пример #4
0
 Point IRibbonItemContainerServices.GetLocationInScreen(RibbonItemContainer container)
 {
     return(this.RibbonPanelControl.PointToScreen(new Point(0, 0)));
 }