StatusBarPanel

StatusBarPanel marshal by reference, disposable

System. Windows .Forms (system. windows .forms.dll) class

This class represents a single panel within a StatusBar . It can display Text and/or an Icon . Unlike other controls in the framework, this Icon really must be an Icon and not a generic Image . You can choose the Alignment of the text and icons within the panel, which honors the right-to-left reading status of the parent control (unlike the general layout of the status bar itself).

You can specify a standard Width for the panel as well as its MinWidth . Alternatively, you can set the AutoSize style to size to the Contents or Spring (which will evenly divide up the remaining space in the StatusBar ).

The border around the panel is set with the BorderStyle property, and you can assign a ToolTip with the ToolTipText .

If you want to handle the repaint for the panel yourself (for example, creating a progress indicator panel), you can set the Style property to StatusBarPanelStyle.OwnerDraw .

If the user clicks on a panel, the StatusBar raises a PanelClick event. See StatusBarPanelClickEventArgs for more information.

 public class  StatusBarPanel  : System.ComponentModel.Component : System.ComponentModel.ISupportInitialize {  // Public Constructors  public  StatusBarPanel  ();  // Public Instance Properties  public HorizontalAlignment  Alignment  {set; get; }    public StatusBarPanelAutoSize  AutoSize  {set; get; }    public StatusBarPanelBorderStyle  BorderStyle  {set; get; }    public Icon  Icon  {set; get; }    public int  MinWidth  {set; get; }    public StatusBar  Parent  {get; }    public StatusBarPanelStyle  Style  {set; get; }    public string  Text  {set; get; }    public string  ToolTipText  {set; get; }    public int  Width  {set; get; }  // Public Instance Methods  public void  BeginInit  ();  // implements System.ComponentModel.ISupportInitialize  public void  EndInit  ();  // implements System.ComponentModel.ISupportInitialize  public override string  ToString  ();  // overrides System.ComponentModel.Component   // Protected Instance Methods  protected override void  Dispose  (bool  disposing  );  // overrides System.ComponentModel.Component  } 

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) StatusBarPanel(System.ComponentModel.ISupportInitialize)

Returned By

StatusBarPanelCollection.this , StatusBarDrawItemEventArgs.Panel , StatusBarPanelClickEventArgs.StatusBarPanel

Passed To

StatusBarPanelCollection.{Add() , AddRange( ) , Contains() , IndexOf( ) , Insert() , Remove() , this} , StatusBarDrawItemEventArgs.StatusBarDrawItemEventArgs() , StatusBarPanelClickEventArgs.StatusBarPanelClickEventArgs()



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net