RichEditControl.GetBoundsFromPositionF(DocumentPosition) Method
Gets the rectangle representing the character at the specified position. Coordinates are in a physical layout.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v24.2.dll
NuGet Package: DevExpress.Wpf.RichEdit
#Declaration
public RectangleF GetBoundsFromPositionF(
DocumentPosition pos
)
#Parameters
Name | Type | Description |
---|---|---|
pos | Document |
A Document |
#Returns
Type | Description |
---|---|
Rectangle |
A Rectangle |
#Remarks
You can use the GetBoundsFromPositionF method only for the currently visible part of the document. If the specified position is not displayed, the method returns a System.Drawing.Rectangle.Empty value.
The location and size of the resulting rectangle are expressed in the measurement units in effect for the current document. To change the unit of measurement, use the Document.Unit property.