System.Windows.Forms.DataGridViewTextBoxCell.GetErrorIconBounds C# (CSharp) Method

GetErrorIconBounds() protected method

protected GetErrorIconBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
return System.Drawing.Rectangle
		protected override Rectangle GetErrorIconBounds (Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex)
		{
			if (DataGridView == null || string.IsNullOrEmpty (ErrorText))
				return Rectangle.Empty;
				
			Size error_icon = new Size (12, 11);
			return new Rectangle (new Point (Size.Width - error_icon.Width - 5, (Size.Height - error_icon.Height) / 2), error_icon);
		}