/// <include file='doc\DataGridViewCellStyle.uex' path='docs/doc[@for="DataGridViewCellStyle.DataGridViewCellStyle2"]/*' />
 public DataGridViewCellStyle(DataGridViewCellStyle dataGridViewCellStyle)
 {
     if (dataGridViewCellStyle == null)
     {
         throw new ArgumentNullException("dataGridViewCellStyle");
     }
     this.propertyStore = new PropertyStore();
     this.scope = DataGridViewCellStyleScopes.None;
     this.BackColor = dataGridViewCellStyle.BackColor;
     this.ForeColor = dataGridViewCellStyle.ForeColor;
     this.SelectionBackColor = dataGridViewCellStyle.SelectionBackColor;
     this.SelectionForeColor = dataGridViewCellStyle.SelectionForeColor;
     this.Font = dataGridViewCellStyle.Font;
     this.NullValue = dataGridViewCellStyle.NullValue;
     this.DataSourceNullValue = dataGridViewCellStyle.DataSourceNullValue;
     this.Format = dataGridViewCellStyle.Format;
     if (!dataGridViewCellStyle.IsFormatProviderDefault)
     {
         this.FormatProvider = dataGridViewCellStyle.FormatProvider;
     }
     this.AlignmentInternal = dataGridViewCellStyle.Alignment;
     this.WrapModeInternal = dataGridViewCellStyle.WrapMode;
     this.Tag = dataGridViewCellStyle.Tag;
     this.PaddingInternal = dataGridViewCellStyle.Padding;
 }
 internal void RemoveScope(DataGridViewCellStyleScopes scope)
 {
     this.scope &= ~scope;
     if (this.scope == DataGridViewCellStyleScopes.None)
     {
         this.dataGridView = null;
     }
 }
 internal void AddScope(DataGridView dataGridView, DataGridViewCellStyleScopes scope)
 {
     this.scope |= scope;
     this.dataGridView = dataGridView;
 }
 /// <include file='doc\DataGridViewCellStyle.uex' path='docs/doc[@for="DataGridViewCellStyle.DataGridViewCellStyle"]/*' />
 /// <devdoc>
 ///    <para>
 ///       Initializes a new instance of the <see cref='System.Windows.Forms.DataGridViewCellStyle'/> class.
 ///    </para>
 /// </devdoc>
 public DataGridViewCellStyle()
 {
     this.propertyStore = new PropertyStore();
     this.scope = DataGridViewCellStyleScopes.None;
 }
		internal DataGridViewCellStyleContentChangedEventArgs (DataGridViewCellStyle cellStyle, DataGridViewCellStyleScopes cellStyleScope) {
			this.cellStyle = cellStyle;
			this.cellStyleScope = cellStyleScope;
		}
Exemplo n.º 6
0
 /// <include file='doc\DataGridViewCellStyle.uex' path='docs/doc[@for="DataGridViewCellStyle.DataGridViewCellStyle"]/*' />
 /// <devdoc>
 ///    <para>
 ///       Initializes a new instance of the <see cref='System.Windows.Forms.DataGridViewCellStyle'/> class.
 ///    </para>
 /// </devdoc>
 public DataGridViewCellStyle()
 {
     this.propertyStore = new PropertyStore();
     this.scope         = DataGridViewCellStyleScopes.None;
 }
 internal void AddScope(DataGridView dataGridView, DataGridViewCellStyleScopes scope)
 {
     this.scope       |= scope;
     this.dataGridView = dataGridView;
 }