DataGridTableStyle.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 » DataGridTableStyle.cs
//
// System.Windows.Forms.DataGridTableStyle
//
// Author:
//   stubbed out by Jaak Simm (jaaksimm@firm.ee)
//   Dennis Hayes (dennish@Raytek.com)
//
// (C) Ximian, Inc., 2002
//

//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

using System.ComponentModel;
using System.Drawing;
using System.Collections;

namespace System.Windows.Forms{

  /// <summary>
  /// Represents the table drawn by the System.Windows.Forms.DataGrid control at run time.
  /// </summary>
  
  [MonoTODO]
  public class DataGridTableStyle : Component {

    #region Fields
    // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code:
    public static DataGridTableStyle DefaultTableStyle;
    bool allowSorting;
    Color alternatingBackColor;
    Color backColor;
    bool columnHeadersVisible;
    DataGrid dataGrid;
    Color foreColor;
    Color gridLineColor;
    DataGridLineStyle gridLineStyle;
    Color headerBackColor;
    Font headerFont;
    Color headerForeColor;
    Color linkColor;
    string mappingName;
    int preferredColumnWidth;
    int preferredRowHeight;
    bool readOnly;
    bool rowHeadersVisible;
    int rowHeaderWidth;
    Color selectionBackColor;
    Color selectionForeColor;
    #endregion
    
    #region Constructors
    [MonoTODO]
    public DataGridTableStyle() 
    {
      allowSorting=true;
      alternatingBackColor=SystemColors.Window;
      gridLineStyle=DataGridLineStyle.Solid;
      rowHeadersVisible=true;
    }

    // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code:
    [MonoTODO]
    public DataGridTableStyle(bool isDefaultTableStyle){
    }
    
    [MonoTODO]
    public DataGridTableStyle(CurrencyManager listManager) : this() 
    {
      
    }
    #endregion
    
    #region Properties
    public bool AllowSorting {
      get { return allowSorting; }
      set { allowSorting=value; }
    }
    
    public Color AlternatingBackColor {
      get { return alternatingBackColor; }
      set { alternatingBackColor=value; }
    }
    
    public Color BackColor {
      get { return backColor; }
      set { backColor=value; }
    }
    
    public bool ColumnHeadersVisible {
      get { return columnHeadersVisible; }
      set { columnHeadersVisible=value; }
    }
    
    public virtual DataGrid DataGrid {
      get { return dataGrid; }
      set { dataGrid=value; }
    }
    
    public Color ForeColor {
      get { return foreColor; }
      set { foreColor=value; }
    }
    
    [MonoTODO]
    public virtual GridColumnStylesCollection GridColumnStyles {
      get { throw new NotImplementedException (); }
    }
    
    public Color GridLineColor {
      get { return gridLineColor; }
      set { gridLineColor=value; }
    }
    
    public DataGridLineStyle GridLineStyle {
      get { return gridLineStyle; }
      set { gridLineStyle=value; }
    }
    
    public Color HeaderBackColor {
      get { return headerBackColor; }
      set { headerBackColor=value; }
    }
    
    public Font HeaderFont {
      get { return headerFont; }
      set { headerFont=value; }
    }
    
    public Color HeaderForeColor {
      get { return headerForeColor; }
      set { headerForeColor=value; }
    }
    
    public Color LinkColor {
      get { return linkColor; }
      set { linkColor=value; }
    }
    
    // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
    [MonoTODO]
    public Color LinkHoverColor {
      get {
        throw new NotImplementedException ();
      }
      set {
      }
    }
    
    public string MappingName {
      get { return mappingName; }
      set { mappingName=value; }
    }
    
    public int PreferredColumnWidth {
      get { return preferredColumnWidth; }
      set { preferredColumnWidth=value; }
    }
    
    public int PreferredRowHeight {
      get { return preferredRowHeight; }
      set { preferredRowHeight=value; }
    }
    
    public virtual bool ReadOnly {
      get { return allowSorting; }
      set { allowSorting=value; }
    }
    
    public bool RowHeadersVisible {
      get { return rowHeadersVisible; }
      set { rowHeadersVisible=value; }
    }
    
    [MonoTODO]
    public int RowHeaderWidth {
      get { return rowHeaderWidth; }
      set { rowHeaderWidth=value; }
    }
    
    public Color SelectionBackColor {
      get { return selectionBackColor; }
      set { selectionBackColor=value; }
    }
    
    public Color SelectionForeColor {
      get { return selectionForeColor; }
      set { selectionForeColor=value; }
    }
    #endregion
    
    #region Methods
    [MonoTODO]
    public virtual bool BeginEdit(DataGridColumnStyle gridColumn,int rowNumber) 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected internal virtual DataGridColumnStyle CreateGridColumn(PropertyDescriptor prop) 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected internal virtual DataGridColumnStyle CreateGridColumn(PropertyDescriptor prop,bool isDefault) 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected override void Dispose(bool disposing) 
    {
      //FIXME:
      base.Dispose(disposing);;
    }
    
    [MonoTODO]
    public virtual bool EndEdit(DataGridColumnStyle gridColumn,int rowNumber,bool shouldAbort) 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual void OnAllowSortingChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnAlternatingBackColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnBackColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnColumnHeadersVisibleChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnForeColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnGridLineColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnGridLineStyleChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnHeaderBackColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnHeaderFontChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnHeaderForeColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnLinkColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnLinkHoverColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnMappingNameChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnPreferredColumnWidthChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnPreferredRowHeightChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnReadOnlyChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnRowHeadersVisibleChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnRowHeaderWidthChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnSelectionBackColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual void OnSelectionForeColorChanged(EventArgs e) 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetAlternatingBackColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetBackColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetForeColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetGridLineColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetHeaderBackColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetHeaderFont() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetHeaderForeColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetLinkColor() 
    {
      //FIXME:
    }
    
    /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
    public void ResetLinkHoverColor(){
    }
    
    [MonoTODO]
    public void ResetSelectionBackColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    public void ResetSelectionForeColor() 
    {
      //FIXME:
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeAlternatingBackColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected bool ShouldSerializeBackColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected bool ShouldSerializeForeColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeGridLineColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeHeaderBackColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeHeaderForeColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeLinkColor() 
    {
      throw new NotImplementedException ();
    }
    
    /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
    [MonoTODO]
    protected virtual bool ShouldSerializeLinkHoverColor(){
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected bool ShouldSerializePreferredRowHeight() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected bool ShouldSerializeSelectionBackColor() 
    {
      throw new NotImplementedException ();
    }
    
    [MonoTODO]
    protected virtual bool ShouldSerializeSelectionForeColor() 
    {
      throw new NotImplementedException ();
    }
    #endregion
    
    #region Events
    public event EventHandler AllowSortingChanged ;
    public event EventHandler AlternatingBackColorChanged;
    public event EventHandler BackColorChanged;
    public event EventHandler ColumnHeadersVisibleChanged;
    public event EventHandler ForeColorChanged;
    public event EventHandler GridLineColorChanged;
    public event EventHandler GridLineStyleChanged;
    public event EventHandler HeaderBackColorChanged;
    public event EventHandler HeaderFontChanged;
    public event EventHandler HeaderForeColorChanged;
    public event EventHandler LinkColorChanged;
    
    /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
    public event EventHandler LinkHoverColorChanged;
    
    public event EventHandler MappingNameChanged;
    public event EventHandler PreferredColumnWidthChanged;
    public event EventHandler PreferredRowHeightChanged;
    public event EventHandler ReadOnlyChanged;
    public event EventHandler RowHeadersVisibleChanged;
    public event EventHandler RowHeaderWidthChanged;
    public event EventHandler SelectionBackColorChanged;
    public event EventHandler SelectionForeColorChanged;
    #endregion
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.