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)); }
Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container) { return(new Rectangle(0, 0, this.RibbonContainerSize.Width, this.RibbonContainerSize.Height)); }
Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container) { RibbonGroup group = (RibbonGroup)container; return(group.TabPanel.GetGroupBounds(group)); }
Point IRibbonItemContainerServices.GetLocationInScreen(RibbonItemContainer container) { return(this.RibbonPanelControl.PointToScreen(new Point(0, 0))); }