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.

Definition

Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: 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
)

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

Rectangle
The bounds of the cell's text

See Also