示例#1
0
 public ToolbarItem()
 {
     this.m_Visible = true;
     this.m_Enabled = true;
     this.m_Pressed = false;
     this.m_Name = string.Empty;
     this.m_Text = string.Empty;
     this.Tag = null;
     this.m_Font = new System.Drawing.Font("Arial", 10f, FontStyle.Regular);
     this.m_TextFormat = new StringFormat();
     this.m_TextFormat.Alignment = StringAlignment.Center;
     this.m_TextFormat.LineAlignment = StringAlignment.Center;
     this.m_TextAlignment = Alignment.MiddleCenter;
     this.m_ImageAlignment = Alignment.MiddleCenter;
     this.m_ForeColor = Color.Black;
     this.m_BackColor = Color.White;
     this.m_FocusedColor = Color.Black;
     this.m_StretchImage = false;
     this.m_AutoTransparent = false;
     this.m_ToolbarItemBehavior = ToolbarItemBehaviorType.KeepSelectedAfterClick;
 }
示例#2
0
 public ToolbarItem()
 {
     this.m_Visible                  = true;
     this.m_Enabled                  = true;
     this.m_Pressed                  = false;
     this.m_Name                     = string.Empty;
     this.m_Text                     = string.Empty;
     this.Tag                        = null;
     this.m_Font                     = new System.Drawing.Font("Arial", 10f, FontStyle.Regular);
     this.m_TextFormat               = new StringFormat();
     this.m_TextFormat.Alignment     = StringAlignment.Center;
     this.m_TextFormat.LineAlignment = StringAlignment.Center;
     this.m_TextAlignment            = Alignment.MiddleCenter;
     this.m_ImageAlignment           = Alignment.MiddleCenter;
     this.m_ForeColor                = Color.Black;
     this.m_BackColor                = Color.White;
     this.m_FocusedColor             = Color.Black;
     this.m_StretchImage             = false;
     this.m_AutoTransparent          = false;
     this.m_ToolbarItemBehavior      = ToolbarItemBehaviorType.KeepSelectedAfterClick;
 }