Label.cs :  » 2.6.4-mono-.net-core » System.Windows.Forms » System » Windows » Forms » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » 2.6.4 mono .net core » System.Windows.Forms 
System.Windows.Forms » System » Windows » Forms » Label.cs
    //
    // System.Windows.Forms.Label.cs
    //
    // Author:
    //   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
    //    implemented for Gtk+ by Rachel Hestilow (hestilow@ximian.com)
    //  Dennis Hayes (dennish@raytek.com)
    //   WineLib implementation started by John Sohn (jsohn@columbus.rr.com)
    //
    // (C) 2002 Ximian, Inc
    //
    
    namespace System.Windows.Forms{
      using System.ComponentModel;
      using System.Drawing;
    
      // <summary>
      //
      // </summary>
      
      public class Label : Control {
    
        Image backgroundImage;
        BorderStyle borderStyle;
        bool autoSize;
        Image image;
        ContentAlignment imageAlign;
        ImeMode defaultImeMode;
        bool renderTransparent;
        FlatStyle flatStyle;
        int preferredHeight;
        int preferredWidth;
        bool tabStop;
        ContentAlignment textAlign;
        bool useMnemonic;
    
        //
        //  --- Constructor
        //
        public Label () : base ()
        {
    
        }
        
        //
        //  --- Public Properties
        //
        public virtual bool AutoSize {
          get {
            return autoSize;
          }
          set {
            autoSize = value;
          }
        }
    
        public override Image BackgroundImage {
          get {
            return backgroundImage;
          }
          set {
            backgroundImage = value;
            // FIXME: force redraw
          }
        }
    
        public virtual BorderStyle BorderStyle {
          get {
            return borderStyle;
          }
          set {
            borderStyle = value;
          }
        }
    
    
        public FlatStyle FlatStyle {
          get {
            return flatStyle;
          }
          set {
            flatStyle = value;
          }
        }
    
        public Image Image {
          get {
            return image;
          }
          set {
            image = value;
          }
        }
    
        public ContentAlignment ImageAlign {
          get {
            return imageAlign;
          }
          set {
            imageAlign = value;
          }
        }
    
    
        [MonoTODO]
        public int ImageIndex {
          get {
            throw new NotImplementedException ();
          }
          set {
            throw new NotImplementedException ();
          }
        }
    
        [MonoTODO]
        public ImageList ImageList {
          get {
            throw new NotImplementedException ();
          }
          set {
            throw new NotImplementedException ();
          }
        }
    
        [MonoTODO]
        public new ImeMode ImeMode {
          get {
            throw new NotImplementedException ();
          }
          set {
            throw new NotImplementedException ();
          }
        }
    
        public int PreferredHeight {
          get {
            return preferredHeight;
          }
        }
    
        public int PreferredWidth {
          get {
            return preferredWidth;
          }
        }
    
        public new bool TabStop {
          get {
            return tabStop;
          }
          set {
            tabStop = value;
          }
        }
    
     //Compact Framework
        public virtual ContentAlignment TextAlign {
          get {
            return textAlign;
          }
          set {
            textAlign = value;
          }
        }
    
        public bool UseMnemonic {
          get {
            return useMnemonic;
          }
          set {
            useMnemonic = value;
          }
        }
    
        //
        //  --- Protected Properties
        //
    
        protected override CreateParams CreateParams {
          get {
         CreateParams createParams = new CreateParams ();
         window = new ControlNativeWindow (this);
 
         createParams.Caption = Text;
         createParams.ClassName = "STATIC";
         createParams.X = Left;
         createParams.Y = Top;
         createParams.Width = Width;
         createParams.Height = Height;
         createParams.ClassStyle = 0;
         createParams.ExStyle = 0;
         createParams.Param = 0;
         createParams.Parent = Parent.Handle;
         createParams.Style = (int) (
           Win32.WS_CHILD | 
           Win32.WS_VISIBLE | Win32.SS_LEFT );
         window.CreateHandle (createParams);
            return createParams;
          }
        }
    
        protected override Size DefaultSize {
          get {
            // FIXME: use GetSystemMetrics?
            throw new NotImplementedException ();
          }
        }
    
        protected virtual bool RenderTransparent {
          get {
            return renderTransparent;
          }
          set {
            renderTransparent = value;
          }
        }
    
        protected override ImeMode DefaultImeMode {
          get {
            return defaultImeMode;
          }
        }
    
        //
        //  --- Public Methods
        //
        [MonoTODO]
        public override bool Equals(object o)
        {
          throw new NotImplementedException ();
        }
    
        public override int GetHashCode() {
          //FIXME add our proprities
          return base.GetHashCode();
        }
    
        public new void Select()
        {
          base.Select ();
        }
    
      //Compact Framework
        [MonoTODO]
        public override string ToString()
        {
          throw new NotImplementedException ();
        }
    
        //
        //  --- Public Events
        // 
        public event EventHandler AutoSizeChanged; // {
    //       add {
    //         throw new NotImplementedException ();
    //       }
    //       remove {
    //         throw new NotImplementedException ();
    //       }
    //     }
    
        public event EventHandler TextAlignChanged; // {
    //       add {
    //         throw new NotImplementedException ();
    //       }
    //       remove {
    //         throw new NotImplementedException ();
    //       }
    //     }
    
        //
        //  --- Protected Methods
        //
        [MonoTODO]
        protected  Rectangle CalcImageRenderBounds (
          Image image, Rectangle rect, ContentAlignment align)
        {
          throw new NotImplementedException ();
        }
    
    //      [MonoTODO]
    //      protected  override AccessibleObject CreateAccessibilityInstance()
    //      {
    //        throw new NotImplementedException ();
    //      }
    
        protected new virtual void Dispose()
        {
          //throw new NotImplementedException ();
        }
    
        protected  override void Dispose(bool disposing)
        {
          //throw new NotImplementedException ();
        }
    
        [MonoTODO]
        protected  void DrawImage (Graphics g, Image img, 
                 Rectangle r, ContentAlignment align)
        {
          throw new NotImplementedException ();
        }
    
        protected virtual void OnAutoSizeChanged (EventArgs e) {
          if (AutoSizeChanged != null)
            AutoSizeChanged (this, e);
    
        }
    
        protected override void OnEnabledChanged (EventArgs e)
        {
          base.OnEnabledChanged (e);
        }
    
        protected override void OnFontChanged (EventArgs e)
        {
          base.OnFontChanged (e);
        }
    
        protected override void OnPaint (PaintEventArgs e)
        {
    
        }
    
      //Compact Framework
        protected override void OnParentChanged (EventArgs e)
        {
          base.OnParentChanged (e);
        }
    
        protected virtual void OnTextAlignChanged (EventArgs e) {
          if (TextAlignChanged != null)
            TextAlignChanged (this, e);
        }
    
     //Compact Framework
        protected override void OnTextChanged (EventArgs e) {
          base.OnTextChanged (e);
        }
    
        protected override void OnVisibleChanged (EventArgs e)
        {
          base.OnVisibleChanged (e);
        }
    
        protected override bool ProcessMnemonic(char charCode)
        {
          return base.ProcessMnemonic (charCode);
        }
    
        [MonoTODO]
        protected new ContentAlignment RtlTranslateAlignment (
          ContentAlignment alignment)
        {
          throw new NotImplementedException ();
        }
    
        [MonoTODO]
        protected new HorizontalAlignment RtlTranslateAlignment (
          HorizontalAlignment alignment)
        {
          throw new NotImplementedException ();
        }
        
        [MonoTODO]
        protected new LeftRightAlignment RtlTranslateAlignment (
          LeftRightAlignment align)
        {
          throw new NotImplementedException ();
        }
    
        [MonoTODO]
        protected new virtual void Select (bool directed, bool forward)
        {
          throw new NotImplementedException ();
        }
    
        protected override void SetBoundsCore (
          int x, int y, int width, int height,
          BoundsSpecified specified)
        {
          base.SetBoundsCore (x, y, width, height, specified);
        }
    
        protected new void UpdateBounds()
        {
          base.UpdateBounds ();
        }
    
        protected new void UpdateBounds (int x, int y,
                   int width, int height)
        {
          base.UpdateBounds (x, y, width, height);
        }
    
    
        protected new void UpdateBounds (int x, int y, int width,
                   int height, int clientWidth,
                   int clientHeight)
        {
          base.UpdateBounds (x, y, width, height, clientWidth, 
                 clientHeight);
        }
    
        protected override void WndProc(ref Message m)
        {
          base.WndProc (ref m);
        }
      }
    }
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.