FlexReport for .NET | ComponentOne
C1.WPF.FlexReport.4.6.2 Assembly / C1.WPF.FlexReport Namespace / C1FlexReport Class / GetWordDocumentRange Method
A C1.WPF.Document.C1DocumentTextPosition object specifying the text position.
The C1.WPF.Document.Util.IC1TextMeasurementContext to use while building C1.WPF.Document.C1DocumentRange.

In This Topic
    GetWordDocumentRange Method (C1FlexReport)
    In This Topic
    Creates a C1.WPF.Document.C1DocumentRange object that defines a word containing a specified position in the document.
    Syntax
    'Declaration
     
    Public Function GetWordDocumentRange( _
       ByVal position As C1DocumentTextPosition, _
       ByVal textMeasurementContext As IC1TextMeasurementContext _
    ) As C1DocumentRange
    public C1DocumentRange GetWordDocumentRange( 
       C1DocumentTextPosition position,
       IC1TextMeasurementContext textMeasurementContext
    )

    Parameters

    position
    A C1.WPF.Document.C1DocumentTextPosition object specifying the text position.
    textMeasurementContext
    The C1.WPF.Document.Util.IC1TextMeasurementContext to use while building C1.WPF.Document.C1DocumentRange.

    Return Value

    A C1.WPF.Document.C1DocumentRange that defines the word that contains or is near the specified position.
    See Also