InputManCell と組み込みのセルを判別するには?
対象製品
MultiRow for Windows Forms 5.0J
詳細
InputManCellBase クラスを使用すると、指定したセルが InputManCell かどうかを判定できます。(GcTextBoxCell、GcMaskCell、GcCharMaskCell、GcDateCell、GcTimeSpanCell、GcNumberCell および GcComboBoxCell)
[Visual Basic]
[C#]
GcBarCodeCell のみ次のように組み込みセルと同じように判別する必要があります。
[Visual Basic]
[C#]
[Visual Basic]
If TypeOf gcMultiRow1.CurrentCell Is GrapeCity.Win.MultiRow.InputMan.InputManCellBase Then
Console.WriteLine("InputManCell です")
End If
Console.WriteLine("InputManCell です")
End If
[C#]
if (gcMultiRow1.CurrentCell is GrapeCity.Win.MultiRow.InputMan.InputManCellBase)
{
Console.WriteLine("InputManCell です");
}
{
Console.WriteLine("InputManCell です");
}
GcBarCodeCell のみ次のように組み込みセルと同じように判別する必要があります。
[Visual Basic]
If TypeOf gcMultiRow1.CurrentCell Is GrapeCity.Win.MultiRow.PlusPak.GcBarCodeCell Then
Console.WriteLine("GcBarCodeCell です")
End If
Console.WriteLine("GcBarCodeCell です")
End If
[C#]
if (gcMultiRow1.CurrentCell is GrapeCity.Win.MultiRow.PlusPak.GcBarCodeCell)
{
Console.WriteLine("GcBarCodeCell です");
}
{
Console.WriteLine("GcBarCodeCell です");
}
関連情報
この文書は、以前は次のFAQ IDで公開されていました : 11519