Source/ItemPaintArgs.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Summary description for ItemPaintArgs.
/// </summary>
public class ItemPaintArgs
{
public System.Drawing.Graphics Graphics;
public ColorScheme Colors;
public System.Windows.Forms.Control ContainerControl;
public eTextFormat ButtonStringFormat;
public bool IsOnMenu=false;
public bool IsOnPopupBar = false;
public bool IsOnMenuBar=false;
public bool IsOnRibbonBar = false;
public bool IsOnNavigationBar = false;
public System.Drawing.Font Font;
public IOwner Owner;
public bool RightToLeft = false;
private DevComponents.DotNetBar.ThemeWindow m_ThemeWindow=null;
private DevComponents.DotNetBar.ThemeRebar m_ThemeRebar=null;
private DevComponents.DotNetBar.ThemeToolbar m_ThemeToolbar=null;
private DevComponents.DotNetBar.ThemeHeader m_ThemeHeader=null;
private DevComponents.DotNetBar.ThemeScrollBar m_ThemeScrollBar=null;
private DevComponents.DotNetBar.ThemeExplorerBar m_ThemeExplorerBar=null;
private DevComponents.DotNetBar.ThemeProgress m_ThemeProgress=null;
private DevComponents.DotNetBar.ThemeButton m_ThemeButton = null;
public bool DesignerSelection = false;
public bool GlassEnabled = false;
private Rendering.BaseRenderer m_Renderer = null;
public ButtonItemRendererEventArgs ButtonItemRendererEventArgs = new ButtonItemRendererEventArgs();
public Rectangle ClipRectangle = Rectangle.Empty;
public bool ControlExpanded = true;
internal bool CachedPaint = false;
internal bool IsDefaultButton = false;
public bool IsFlatOffice2007Representation = false;
public ItemPaintArgs(IOwner owner, System.Windows.Forms.Control control, System.Drawing.Graphics g, ColorScheme scheme)
{
this.Graphics=g;
this.Colors=scheme;
this.ContainerControl=control;
this.Owner=owner;
if(control!=null)
this.RightToLeft = (control.RightToLeft == System.Windows.Forms.RightToLeft.Yes);
if (control is MenuPanel || this.ContainerControl is ItemsListBox)
this.IsOnMenu = true;
else if (control is Bar && ((Bar)control).MenuBar)
this.IsOnMenuBar = true;
else if (control is Bar && ((Bar)control).BarState == eBarState.Popup)
this.IsOnPopupBar = true;
else if (control is RibbonBar)
this.IsOnRibbonBar = true;
else if (control is NavigationBar)
this.IsOnNavigationBar = true;
if(control!=null)
this.Font=control.Font;
CreateStringFormat();
后面还有 138 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。