Base Data Grid View CellGet Text Location Method
This is used to get the text location based on the text size, cell style, and formatting flags in
effect.
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The location at which to draw the text
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected static Point GetTextLocation(
Rectangle cellBounds,
Size sizeText,
TextFormatFlags flags,
DataGridViewCellStyle cellStyle
)VB
Protected Shared Function GetTextLocation (
cellBounds As Rectangle,
sizeText As Size,
flags As TextFormatFlags,
cellStyle As DataGridViewCellStyle
) As PointC++
protected:
static Point GetTextLocation(
Rectangle cellBounds,
Size sizeText,
TextFormatFlags flags,
DataGridViewCellStyle^ cellStyle
)F#
static member GetTextLocation :
cellBounds : Rectangle *
sizeText : Size *
flags : TextFormatFlags *
cellStyle : DataGridViewCellStyle -> Point Parameters
- cellBounds Rectangle
- The cell bounds
- sizeText Size
- The text size
- flags TextFormatFlags
- The text formatting flags
- cellStyle DataGridViewCellStyle
- The cell style
Return Value
PointThe location at which to draw the text