FlexReport for WinForms
FindTextInstances メソッド (Utils)


C1.Document.4.6.2 アセンブリ > C1.Document 名前空間 > Utils クラス : FindTextInstances メソッド
The text to search for.
The string to search.
Index in "where" to start search at.
Length of substring to search in.
Max number of instances to find.
Search direction.
Ignore case.
Whole word search.
Finds instances of text in a string.
シンタックス
'宣言
 
Public Shared Function FindTextInstances( _
   ByVal what As System.String, _
   ByVal where As System.String, _
   ByVal fromIdx As System.Integer, _
   ByVal length As System.Integer, _
   ByVal maxCount As System.Integer, _
   ByVal forward As System.Boolean, _
   ByVal matchCase As System.Boolean, _
   ByVal word As System.Boolean _
) As System.Collections.Generic.IList(Of Integer)
'使用法
 
Dim what As System.String
Dim where As System.String
Dim fromIdx As System.Integer
Dim length As System.Integer
Dim maxCount As System.Integer
Dim forward As System.Boolean
Dim matchCase As System.Boolean
Dim word As System.Boolean
Dim value As System.Collections.Generic.IList(Of Integer)
 
value = Utils.FindTextInstances(what, where, fromIdx, length, maxCount, forward, matchCase, word)
public static System.Collections.Generic.IList<int> FindTextInstances( 
   System.string what,
   System.string where,
   System.int fromIdx,
   System.int length,
   System.int maxCount,
   System.bool forward,
   System.bool matchCase,
   System.bool word
)

パラメータ

what
The text to search for.
where
The string to search.
fromIdx
Index in "where" to start search at.
length
Length of substring to search in.
maxCount
Max number of instances to find.
forward
Search direction.
matchCase
Ignore case.
word
Whole word search.

戻り値の型

Array of indexes into "where" to the found instances.
参照

参照

Utils クラス
Utils メンバ