An NDoc Documented Class Library

Window.GetTopChild メソッド (String, String, String, Int32)

条件に合致する、配下の子Windowを返します。 合致するProcessがない場合はWindowExceptionが発生します。 合致するProcessが複数存在する場合はWindowExceptionが発生します。 合致する子Windowがない場合はnullを返します。

public static Window GetTopChild(
   string sProcessName,
   string sClass,
   string sText,
   int iSameNum
);

パラメータ

sProcessName
プロセス名
sClass
ウィンドウクラス名(nullですべてに一致)
sText
ウィンドウテキスト(nullですべてに一致)
iSameNum
ウィンドウクラス名・ウィンドウテキストが同一の子Windowの中で何番目のWindowか

戻り値

条件に該当したWindow

参照

Window クラス | FNF.WindowController 名前空間 | Window.GetTopChild オーバーロードの一覧