Наследование: System.Windows.Forms.DataGridViewImageCell
Пример #1
0
        private void LayersChanged(object sender = null, EventArgs e = null)
        {
            layerGrid.Rows.Clear();

            if (Image != null)
            {
                for (int i = 0; i < Image.Layers.Count; ++i)
                {
                    layerGrid.Rows.Insert(0, null, Image.Layers[i].Label);
                    layerGrid.Rows[0].Height = 48;
                    layerGrid[0, 0]          = new DataGridViewLayerCell()
                    {
                        Value = Image.Layers[i].Bitmap
                    };
                }
            }

            ImageChanged();
        }
Пример #2
0
        private void LayersChanged( object sender = null, EventArgs e = null )
        {
            layerGrid.Rows.Clear();

            if ( Image != null )
            {
                for ( int i = 0; i < Image.Layers.Count; ++i )
                {
                    layerGrid.Rows.Insert( 0, null, Image.Layers[ i ].Label );
                    layerGrid.Rows[ 0 ].Height = 48;
                    layerGrid[ 0, 0 ] = new DataGridViewLayerCell() { Value = Image.Layers[ i ].Bitmap };
                }
            }

            ImageChanged();
        }