Base Data Grid View CellGet Text Bounds Method
This is used to compute the text bounds for the cell based on the cell bounds, cell style, and the
formatting flags in effect.
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The bounds of the cell's text
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected static Rectangle GetTextBounds(
Rectangle cellBounds,
string text,
TextFormatFlags flags,
DataGridViewCellStyle cellStyle,
Font font
)VB
Protected Shared Function GetTextBounds (
cellBounds As Rectangle,
text As String,
flags As TextFormatFlags,
cellStyle As DataGridViewCellStyle,
font As Font
) As RectangleC++
protected:
static Rectangle GetTextBounds(
Rectangle cellBounds,
String^ text,
TextFormatFlags flags,
DataGridViewCellStyle^ cellStyle,
Font^ font
)F#
static member GetTextBounds :
cellBounds : Rectangle *
text : string *
flags : TextFormatFlags *
cellStyle : DataGridViewCellStyle *
font : Font -> Rectangle Parameters
- cellBounds Rectangle
- The cell bounds
- text String
- The cell text
- flags TextFormatFlags
- The text formatting flags
- cellStyle DataGridViewCellStyle
- The cell style
- font Font
- The font
Return Value
RectangleThe bounds of the cell's text