ContextNodeBaseCollection に ContextNodeBase オブジェクトを追加します。
名前空間 : System.Windows.Ink.AnalysisCore
アセンブリ : IACore (IACore.dll 内)
構文
'宣言
Public Function Add ( _
nodeToAdd As ContextNodeBase _
) As Integer
'使用
Dim instance As ContextNodeBaseCollection
Dim nodeToAdd As ContextNodeBase
Dim returnValue As Integer
returnValue = instance.Add(nodeToAdd)
public int Add(
ContextNodeBase nodeToAdd
)
public:
int Add(
ContextNodeBase^ nodeToAdd
)
public int Add(
ContextNodeBase nodeToAdd
)
public function Add(
nodeToAdd : ContextNodeBase
) : int
パラメータ
- nodeToAdd
型 : System.Windows.Ink.AnalysisCore.ContextNodeBase
ContextNodeBaseCollection に追加する ContextNodeBase オブジェクト。
戻り値
型 : System.Int32
ContextNodeBase が追加される位置のインデックス。nodeToAdd がコレクション内に既に存在する場合、Add はコレクション内のその位置のインデックスを返します。Add が ContextNodeBase を追加できない場合は、-1 を返します。
例
次の例では、theInkAnalyzerBase という名前の InkAnalyzerBase から、Paragraph 型の新しい ContextNodeBase を作成し、nodes という名前の ContextNodeBaseCollection に追加します。
Dim paragraph As ContextNodeBase = _
theInkAnalyzerBase.RootNode.CreateSubNode(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Paragraph)
nodes.Add(paragraph)
ContextNodeBase paragraph = theInkAnalyzer.RootNode.CreateSubNode(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Paragraph);
nodes.Add(paragraph);
プラットフォーム
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0