BaseDataGridViewCellGetTextBounds 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.
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected static Rectangle GetTextBounds(
Rectangle cellBounds,
string text,
TextFormatFlags flags,
DataGridViewCellStyle cellStyle,
Font font
)
Protected Shared Function GetTextBounds (
cellBounds As Rectangle,
text As String,
flags As TextFormatFlags,
cellStyle As DataGridViewCellStyle,
font As Font
) As Rectangle
protected:
static Rectangle GetTextBounds(
Rectangle cellBounds,
String^ text,
TextFormatFlags flags,
DataGridViewCellStyle^ cellStyle,
Font^ font
)
static member GetTextBounds :
cellBounds : Rectangle *
text : string *
flags : TextFormatFlags *
cellStyle : DataGridViewCellStyle *
font : Font -> Rectangle
- 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
RectangleThe bounds of the cell's text