InputManCell と組み込みのセルを判別するには?

文書番号 : 26351     文書種別 : 使用方法     最終更新日 : 2008/10/24
文書を印刷する
対象製品
MultiRow for Windows Forms 5.0J
詳細
InputManCellBase クラスを使用すると、指定したセルが InputManCell かどうかを判定できます。(GcTextBoxCell、GcMaskCell、GcCharMaskCell、GcDateCell、GcTimeSpanCell、GcNumberCell および GcComboBoxCell)

[Visual Basic]
If TypeOf gcMultiRow1.CurrentCell Is GrapeCity.Win.MultiRow.InputMan.InputManCellBase Then
  Console.WriteLine("InputManCell です")
End If


[C#]
if (gcMultiRow1.CurrentCell is GrapeCity.Win.MultiRow.InputMan.InputManCellBase)
{
  Console.WriteLine("InputManCell です");
}


GcBarCodeCell のみ次のように組み込みセルと同じように判別する必要があります。

[Visual Basic]
If TypeOf gcMultiRow1.CurrentCell Is GrapeCity.Win.MultiRow.PlusPak.GcBarCodeCell Then
  Console.WriteLine("GcBarCodeCell です")
End If


[C#]
if (gcMultiRow1.CurrentCell is GrapeCity.Win.MultiRow.PlusPak.GcBarCodeCell)
{
  Console.WriteLine("GcBarCodeCell です");
}
関連情報

この文書は、以前は次のFAQ IDで公開されていました : 11519