BaseDataGridViewCellGetTextLocation Method
This is used to get the text location based on the text size, cell style, and formatting flags in
effect.
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected static Point GetTextLocation(
Rectangle cellBounds,
Size sizeText,
TextFormatFlags flags,
DataGridViewCellStyle cellStyle
)
Protected Shared Function GetTextLocation (
cellBounds As Rectangle,
sizeText As Size,
flags As TextFormatFlags,
cellStyle As DataGridViewCellStyle
) As Point
protected:
static Point GetTextLocation(
Rectangle cellBounds,
Size sizeText,
TextFormatFlags flags,
DataGridViewCellStyle^ cellStyle
)
static member GetTextLocation :
cellBounds : Rectangle *
sizeText : Size *
flags : TextFormatFlags *
cellStyle : DataGridViewCellStyle -> Point
- cellBounds Rectangle
- The cell bounds
- sizeText Size
- The text size
- flags TextFormatFlags
- The text formatting flags
- cellStyle DataGridViewCellStyle
- The cell style
PointThe location at which to draw the text