public RibbonItemTextRenderEventArgs(Graphics g, RibbonItem item, string text, Rectangle textRectangle, Color textColor, Font textFont) : base(g, item) { Text = text; TextRectangle = textRectangle; TextColor = textColor; TextFont = textFont; }
void TravelSmallItem(RibbonItem item) { ++_smallOverlap; _smallY += item.Margin.Top; item.Location = new Point(_locX + item.Margin.Left, _smallY); Size itemSize = item.GetPreferredSize(); item.Size = itemSize; _smallY += itemSize.Height + item.Margin.Bottom; _smallOverlapMaxWidth = Math.Max(_smallOverlapMaxWidth, itemSize.Width + item.Margin.Horizontal); if (_smallOverlap == 3) { EndTravelSmallBtn(); } }
void TravelLargeItem(RibbonItem item) { EndTravelSmallBtn(); _locX += item.Margin.Left; item.Location = new Point(_locX, _groupLocY + item.Margin.Top); Size itemSize = item.GetPreferredSize(); item.Size = itemSize; _locX += itemSize.Width + item.Margin.Right; }
// public RibbonItemImageRenderEventArgs(Graphics g, RibbonItem item, Rectangle imageRectangle) // : base(g, item) // { // ImageRectangle = imageRectangle; // } public RibbonItemImageRenderEventArgs(Graphics g, RibbonItem item, Image image, Rectangle imageRectangle) : base(g, item) { Image = image; ImageRectangle = imageRectangle; }
public RibbonItemRenderEventArgs(Graphics g, RibbonItem item) { Graphics = g; Item = item; }