Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the CaptionGlyph class.
 /// </summary>
 /// <param name="behaviorService"></param>
 /// <param name="xpanderPanel"></param>
 public XPanderPanelCaptionGlyph(System.Windows.Forms.Design.Behavior.BehaviorService behaviorService, XPanderPanel xpanderPanel)
     : base(new XPanderPanelCaptionClickBehavior(xpanderPanel))
 {
     this.m_behaviorService = behaviorService;
     this.m_xpanderPanel = xpanderPanel;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Behavior class.
 /// </summary>
 /// <param name="xpanderPanel">XPanderPanel for this behaviour</param>
 public XPanderPanelCaptionClickBehavior(XPanderPanel xpanderPanel)
 {
     this.m_xpanderPanel = xpanderPanel;
 }
Beispiel #3
0
 /// <summary>
 /// Inserts an XPanderPanel to the collection at the specified index. 
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted. </param>
 /// <param name="xpanderPanel">The XPanderPanel to insert into the Collection.</param>
 public void Insert(int index, XPanderPanel xpanderPanel)
 {
     ((IList)this).Insert(index, (object)xpanderPanel);
 }
Beispiel #4
0
 /// <summary>
 /// Removes the first occurrence of a specific XPanderPanel from the XPanderPanelCollection
 /// </summary>
 /// <param name="xpanderPanel">The XPanderPanel to remove from the XPanderPanelCollection</param>
 public void Remove(XPanderPanel xpanderPanel)
 {
     this.m_controlCollection.Remove(xpanderPanel);
 }
Beispiel #5
0
 /// <summary>
 /// Returns the index of the specified XPanderPanel in the collection. 
 /// </summary>
 /// <param name="xpanderPanel">The xpanderPanel to find the index of.</param>
 /// <returns>The index of the xpanderPanel, or -1 if the xpanderPanel is not in the <see ref="ControlCollection">ControlCollection</see> instance.</returns>
 public int IndexOf(XPanderPanel xpanderPanel)
 {
     return this.m_controlCollection.IndexOf(xpanderPanel);
 }
Beispiel #6
0
 /// <summary>
 /// Copies the elements of the collection to an Array, starting at a particular Array index.
 /// </summary>
 /// <param name="xpanderPanels">The one-dimensional Array that is the destination of the elements copied from ICollection.
 /// The Array must have zero-based indexing.
 ///</param>
 /// <param name="index">The zero-based index in array at which copying begins.</param>
 public void CopyTo(XPanderPanel[] xpanderPanels, int index)
 {
     this.m_controlCollection.CopyTo(xpanderPanels, index);
 }
Beispiel #7
0
 /// <summary>
 /// Determines whether the XPanderPanelCollection contains a specific XPanderPanel
 /// </summary>
 /// <param name="xpanderPanel">The XPanderPanel to locate in the XPanderPanelCollection</param>
 /// <returns>true if the XPanderPanelCollection contains the specified value; otherwise, false.</returns>
 public bool Contains(XPanderPanel xpanderPanel)
 {
     return this.m_controlCollection.Contains(xpanderPanel);
 }
Beispiel #8
0
 /// <summary>
 /// Adds a XPanderPanel to the collection.  
 /// </summary>
 /// <param name="xpanderPanel">The XPanderPanel to add.</param>
 public void Add(XPanderPanel xpanderPanel)
 {
     this.m_controlCollection.Add(xpanderPanel);
     this.m_xpanderPanelList.Invalidate();
 }
Beispiel #9
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     XPanderPanel xpanderPanel = new XPanderPanel();
     xpanderPanel.Text = "new XPanderPanel";
     xpanderPanel.CaptionHeight = xPanderPanelList1.CaptionHeight;
     xPanderPanelList1.XPanderPanels.Add(xpanderPanel);
     if (this.m_panelColors != null)
     {
         xpanderPanel.SetPanelProperties(this.m_panelColors);
     }
 }