DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的 DataGridViewCellStyle 应用于当前 DataGridViewCellStyle。
public:
 virtual void ApplyStyle(System::Windows::Forms::DataGridViewCellStyle ^ dataGridViewCellStyle);public virtual void ApplyStyle(System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle);abstract member ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unit
override this.ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unitPublic Overridable Sub ApplyStyle (dataGridViewCellStyle As DataGridViewCellStyle)参数
- dataGridViewCellStyle
- DataGridViewCellStyle
例外
              dataGridViewCellStyle 为 null。
注解
方法 ApplyStyle 将 参数中 dataGridViewCellStyle 设置的属性的值应用于当前 DataGridViewCellStyle。 如果未在 中 dataGridViewCellStyle设置属性,则当前 DataGridViewCellStyle 将保留该属性的值。