ノードの識別子を使用することにより、ContextNodeBaseCollection 内の特定の ContextNodeBase オブジェクトのインデックスを返します。
名前空間 : System.Windows.Ink.AnalysisCore
アセンブリ : IACore (IACore.dll 内)
構文
'宣言
Public Function IndexOf ( _
nodeId As Guid _
) As Integer
'使用
Dim instance As ContextNodeBaseCollection
Dim nodeId As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(nodeId)
public int IndexOf(
Guid nodeId
)
public:
int IndexOf(
Guid nodeId
)
public int IndexOf(
Guid nodeId
)
public function IndexOf(
nodeId : Guid
) : int
パラメータ
- nodeId
型 : System.Guid
検索対象となる ContextNodeBase オブジェクトの識別子。
戻り値
型 : System.Int32
ContextNodeBaseCollection 内の特定の ContextNodeBase オブジェクトのインデックス。
解説
ContextNodeBaseCollection 内に Guid が渡され、その識別子を持つ ContextNodeBase オブジェクトが存在しない場合、このメソッドは -1 を返します。
例
次の例では、nodes という名前の ContextNodeBaseCollection に格納される可能性のある myNode という名前の特定の ContextNodeBase のインデックスを検索します。
Dim myNodePosition As Integer = nodes.IndexOf(myNode.Id)
int myNodePosition = nodes.IndexOf(myNode.Id);
プラットフォーム
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0