ScrollBar

ScrollBar marshal by reference, disposable

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

This is the abstract base class for the HScrollBar and the VScrollBar controls.

It has properties that define the Minimum and Maximum values for the scrollbar, and you can get or set the current Value .

The SmallChange property determines the value to be added or subtracted when the buttons are clicked (or the arrow keys are pressed). Similarly, the LargeChange property determines the value to be added or subtracted when the slider body is clicked (or the page up/down keys are pressed).

As the Value is changed, the control raises the ValueChanged event. When the scrollbox moves, it raises a Scroll event. Note that if you drag the slider knob, you get a Scroll when the mouse button is first depressed (with ScrollEventArgs.NewValue = = Value ). As the mouse moves, you get a Scroll before the Value has been updated, then a ValueChanged event as the Value is updated. Finally, you get another Scroll as the mouse is released (with ScrollEventArgs.NewValue = = Value ).

 public abstract class  ScrollBar  : Control {  // Public Constructors  public  ScrollBar  ();  // Public Instance Properties  public override Color  BackColor  {set; get; }  // overrides Control  public override Image  BackgroundImage  {set; get; }  // overrides Control  public override Font  Font  {set; get; }  // overrides Control  public override Color  ForeColor  {set; get; }  // overrides Control  public ImeMode  ImeMode  {set; get; }  // overrides Control  public int  LargeChange  {set; get; }    public int  Maximum  {set; get; }    public int  Minimum  {set; get; }    public int  SmallChange  {set; get; }    public bool  TabStop  {set; get; }  // overrides Control  public override string  Text  {set; get; }  // overrides Control  public int  Value  {set; get; }  // Protected Instance Properties  protected override CreateParams  CreateParams  {get; }  // overrides Control  protected override ImeMode  DefaultImeMode  {get; }  // overrides Control   // Public Instance Methods  public override string  ToString  ();  // overrides System.ComponentModel.Component   // Protected Instance Methods  protected override void  OnEnabledChanged  (EventArgs  e  );  // overrides Control  protected override void  OnHandleCreated  (EventArgs  e  );  // overrides Control  protected virtual void  OnScroll  (ScrollEventArgs  se  );    protected virtual void  OnValueChanged  (EventArgs  e  );    protected void  UpdateScrollInfo  ();    protected override void  WndProc  (ref Message  m  );  // overrides Control   // Events  public event EventHandler  Click  ;  // overrides Control  public event EventHandler  DoubleClick  ;  // overrides Control  public event MouseEventHandler  MouseDown  ;  // overrides Control  public event MouseEventHandler  MouseMove  ;  // overrides Control  public event MouseEventHandler  MouseUp  ;  // overrides Control  public event PaintEventHandler  Paint  ;  // overrides Control  public event ScrollEventHandler  Scroll  ;    public event EventHandler  ValueChanged  ; } 

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) Control(IOleContro, IOleObject , IOleInPlaceObject , IOleInPlaceActiveObject , IOleWindow , IViewObject , IViewObject2 , IPersist , IPersistStreamInit , IPersistPropertyBag , IPersistStorage , IQuickActivate , System.ComponentModel.ISynchronizeInvoke , IWin32Window) ScrollBar

Subclasses

HScrollBar , VScrollBar

Returned By

DataGrid.{HorizScrollBar , VertScrollBar}



. 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