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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET