InkAnalyzer.FindLeafNodes 메서드
업데이트: 2007년 11월
자식 노드가 없는 ContextNode 개체인 모든 리프 노드가 들어 있는 ContextNodeCollection을 반환합니다.
네임스페이스: System.Windows.Ink
어셈블리: IAWinFX(IAWinFX.dll)
구문
‘선언
Public Function FindLeafNodes As ContextNodeCollection
‘사용 방법
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection
returnValue = instance.FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public:
ContextNodeCollection^ FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public function FindLeafNodes() : ContextNodeCollection
반환 값
형식: System.Windows.Ink.ContextNodeCollection
모든 리프 노드가 들어 있는 ContextNodeCollection입니다.
예제
다음 예제에서는 theInkAnalyzer라는 InkAnalyzer의 모든 리프 노드를 반복하여 정수 값 yValue보다 작은 리프 노드를 nodesBelowYValue라는 ArrayList에 추가합니다.
Dim nodesBelowYValue As New ArrayList()
Dim leafNode As ContextNode
For Each leafNode In theInkAnalyzer.FindLeafNodes()
' Add to collection if bottom is lower than yValue
If leafNode.Location.GetBounds().Bottom > yValue Then
nodesBelowYValue.Add(leafNode)
End If
Next leafNode
ArrayList nodesBelowYValue = new ArrayList();
foreach (ContextNode leafNode in theInkAnalyzer.FindLeafNodes())
{
// Add to collection if bottom is lower than yValue
if (leafNode.Location.GetBounds().Bottom > yValue)
{
nodesBelowYValue.Add(leafNode);
}
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원