GrapeCity SPREAD for Windows Forms 11.0J
GetFormatStringAtPos メソッド


現在のテキスト文字列
位置インデックス
指定したテキストの指定した位置にある、フィールドの書式文字列を返します。
構文
'Declaration
 
Function GetFormatStringAtPos( _
   ByVal currText As String, _
   ByVal position As Integer _
) As String
'使用法
 
Dim instance As IManageFmtInput
Dim currText As String
Dim position As Integer
Dim value As String
 
value = instance.GetFormatStringAtPos(currText, position)
string GetFormatStringAtPos( 
   string currText,
   int position
)

パラメータ

currText
現在のテキスト文字列
position
位置インデックス
解説
例:Format String: "d/mm/yy"、currText: "25/12/02"、position: 3の場合、このメソッドは"mm"を返します。位置が無効な場合は""を返します。リテラル位置の場合は、その位置の文字の前に円記号を付けて返します("\c"。"c"は実際の文字)。
参照

IManageFmtInput インタフェース
IManageFmtInput メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.