Exemple #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));
        }
Exemple #2
0
 Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container)
 {
     return(new Rectangle(0, 0, this.RibbonContainerSize.Width, this.RibbonContainerSize.Height));
 }
Exemple #3
0
        Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container)
        {
            RibbonGroup group = (RibbonGroup)container;

            return(group.TabPanel.GetGroupBounds(group));
        }
Exemple #4
0
 Point IRibbonItemContainerServices.GetLocationInScreen(RibbonItemContainer container)
 {
     return(this.RibbonPanelControl.PointToScreen(new Point(0, 0)));
 }