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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om