FlexReport for WinForms
GetNearestTextPosition メソッド (RenderTextFragment)


C1.Document.4.6.2 アセンブリ > C1.Document 名前空間 > RenderTextFragment クラス : GetNearestTextPosition メソッド
The C1.Document.Util.IC1TextMeasurementContext interface which can be used in text processing.
The position relative to the top-left corner of the page.
The horizontal offset of the parent fragment from the left edge of the page.
The vertical offset of the parent fragment from the top edge of the page.
Returns C1DocumentTextPosition defining text position within a fragment which is nearest to the specified point.
シンタックス
'宣言
 
Public Function GetNearestTextPosition( _
   ByVal tmc As IC1TextMeasurementContext, _
   ByVal ptPage As Point, _
   ByVal xOffs As System.Double, _
   ByVal yOffs As System.Double _
) As C1DocumentTextPosition
'使用法
 
Dim instance As RenderTextFragment
Dim tmc As IC1TextMeasurementContext
Dim ptPage As Point
Dim xOffs As System.Double
Dim yOffs As System.Double
Dim value As C1DocumentTextPosition
 
value = instance.GetNearestTextPosition(tmc, ptPage, xOffs, yOffs)
public C1DocumentTextPosition GetNearestTextPosition( 
   IC1TextMeasurementContext tmc,
   Point ptPage,
   System.double xOffs,
   System.double yOffs
)

パラメータ

tmc
The C1.Document.Util.IC1TextMeasurementContext interface which can be used in text processing.
ptPage
The position relative to the top-left corner of the page.
xOffs
The horizontal offset of the parent fragment from the left edge of the page.
yOffs
The vertical offset of the parent fragment from the top edge of the page.

戻り値の型

The C1DocumentTextPosition object defining position within fragment or null.
参照

参照

RenderTextFragment クラス
RenderTextFragment メンバ