UpDownBase

UpDownBase marshal by reference, disposable

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

This class provides the base functionality for the DomainUpDown and NumericUpDown controls. It offers a text box with an attached spin control.

InterceptArrowKeys determines whether you can use the arrow keys to spin the value up and down. UpDownAlign sets the spin buttons to the left or right of the control, respecting the right-to-left setting of the context. UpButton() and DownButton() programmatically invoke the pressing of the respective spin buttons.

 public abstract class  UpDownBase  : ContainerControl {  // Public Constructors  public  UpDownBase  ();  // Public Instance Properties  public override bool  AutoScroll  {set; get; }  // overrides ScrollableControl  public Size  AutoScrollMargin  {set; get; }  // overrides ScrollableControl  public Size  AutoScrollMinSize  {set; get; }  // overrides ScrollableControl  public override Color  BackColor  {set; get; }  // overrides Control  public override Image  BackgroundImage  {set; get; }  // overrides Control  public BorderStyle  BorderStyle  {set; get; }    public override ContextMenu  ContextMenu  {set; get; }  // overrides Control  public DockPaddingEdges  DockPadding  {get; }  // overrides ScrollableControl  public override bool  Focused  {get; }  // overrides Control  public override Color  ForeColor  {set; get; }  // overrides Control  public bool  InterceptArrowKeys  {set; get; }    public int  PreferredHeight  {get; }    public bool  ReadOnly  {set; get; }    public override string  Text  {set; get; }  // overrides Control  public HorizontalAlignment  TextAlign  {set; get; }    public LeftRightAlignment  UpDownAlign  {set; get; }  // Protected Instance Properties  protected bool  ChangingText  {set; get; }    protected override CreateParams  CreateParams  {get; }  // overrides ContainerControl  protected override Size  DefaultSize  {get; }  // overrides Control  protected bool  UserEdit  {set; get; }  // Public Instance Methods  public abstract void  DownButton  ();    public void  Select  (int  start  , int  length  );    public abstract void  UpButton  ();  // Protected Instance Methods  protected virtual void  OnChanged  (object  source  , EventArgs  e  );    protected override void  OnFontChanged  (EventArgs  e  );  // overrides Control  protected override void  OnHandleCreated  (EventArgs  e  );  // overrides Control  protected override void  OnLayout  (LayoutEventArgs  e  );  // overrides ScrollableControl  protected override void  OnMouseWheel  (MouseEventArgs  e  );  // overrides ScrollableControl  protected virtual void  OnTextBoxKeyDown  (object  source  , KeyEventArgs  e  );    protected virtual void  OnTextBoxKeyPress  (object  source  , KeyPressEventArgs  e  );    protected virtual void  OnTextBoxLostFocus  (object  source  , EventArgs  e  );    protected virtual void  OnTextBoxResize  (object  source  , EventArgs  e  );    protected virtual void  OnTextBoxTextChanged  (object  source  , EventArgs  e  );    protected override void  SetBoundsCore  (int  x  , int  y  , int  width  , int  height  , BoundsSpecified  specified  );  // overrides Control  protected abstract void  UpdateEditText  ();    protected virtual void  ValidateEditText  (); } 

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) ScrollableControl ContainerControl(IContainerControl) UpDownBase

Subclasses

DomainUpDown , NumericUpDown



. 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