예제 #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)));
 }