DataGridView.GetColumnDisplayRectangle(Int32, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the rectangle that represents the display area for a column, as determined by the column index.
public:
System::Drawing::Rectangle GetColumnDisplayRectangle(int columnIndex, bool cutOverflow);
public System.Drawing.Rectangle GetColumnDisplayRectangle (int columnIndex, bool cutOverflow);
member this.GetColumnDisplayRectangle : int * bool -> System.Drawing.Rectangle
Public Function GetColumnDisplayRectangle (columnIndex As Integer, cutOverflow As Boolean) As Rectangle
Parameters
- columnIndex
- Int32
The column index for the desired cell.
- cutOverflow
- Boolean
true
to return the column rectangle visible in the DataGridView bounds; false
to return the entire column rectangle.
Returns
The Rectangle that represents the display rectangle of the column.
Exceptions
columnIndex
is not in the valid range of 0 to the number of columns minus 1.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.