업데이트: 2007년 11월
현재 최상위 대체 항목을 지정된 AnalysisAlternateBase로 변경하고 해당 대체 항목과 연결된 모든 컨텍스트 노드에 대한 확인 형식을 지웁니다.
네임스페이스: System.Windows.Ink.AnalysisCore
어셈블리: IACore(IACore.dll)
구문
‘선언
Public Function ModifyTopAlternate ( _
alternate As AnalysisAlternateBase _
) As Boolean
‘사용 방법
Dim instance As InkAnalyzerBase
Dim alternate As AnalysisAlternateBase
Dim returnValue As Boolean
returnValue = instance.ModifyTopAlternate(alternate)
public bool ModifyTopAlternate(
AnalysisAlternateBase alternate
)
public:
bool ModifyTopAlternate(
AnalysisAlternateBase^ alternate
)
public boolean ModifyTopAlternate(
AnalysisAlternateBase alternate
)
public function ModifyTopAlternate(
alternate : AnalysisAlternateBase
) : boolean
매개 변수
- alternate
형식: System.Windows.Ink.AnalysisCore.AnalysisAlternateBase
최상위 대체 항목으로 설정할 대체 항목입니다.
반환 값
형식: System.Boolean
설명
분석 대체 항목을 가져오려면 GetAlternates를 사용합니다. 분석 대체 항목과 연결된 컨텍스트 노드를 가져오려면 AnalysisAlternateBase.AlternateNodes를 사용합니다.
컨텍스트 노드의 확인 형식을 변경하려면 Confirm을 사용합니다.
예제
다음 예제에서는 ContextNodeBaseCollection인 theLineNodes에 대한 최상위 대체 항목을 수정합니다. 이 예제에서 theLineNodes에는 InkAnalyzerBase인 theInkAnalyzerBase의 선택된 줄 노드가 들어 있습니다. 부울 값인 confirmationEnabled는 응용 프로그램에서 노드 확인을 설정했는지 여부를 나타냅니다. 응용 프로그램에 노드 확인이 설정되어 있는 경우 부울 값인 confirmAutomatically는 기존 확인 형식이 지워졌는지 아니면 유지되고 있는지를 나타냅니다.
예제에서는 도우미 메서드인 SelectAnalysisAlternate를 사용하여 분석 대체 항목을 최상위 대체 항목으로 설정합니다.
' Get alternates for the specified line nodes.
Dim theAlternates As System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection = _
theInkAnalyzerBase.GetAlternates(theLineNodes)
' Use a helper method to get the user's choice of alternate.
Dim selectedAlternate As System.Windows.Ink.AnalysisCore.AnalysisAlternateBase = _
Me.SelectAnalysisAlternate(theAlternates)
' Set the chosen alternate as the top alternate.
If confirmationEnabled Then
' If node confirmation is enabled, use the current setting
' of confirmAutomatically to keep or clear the existing
' confirmation status of the line nodes.
theInkAnalyzerBase.ModifyTopAlternate( _
selectedAlternate, confirmAutomatically)
Else
' Otherwise, clear the confirmation as part of modifying
' the top alternate.
theInkAnalyzerBase.ModifyTopAlternate(selectedAlternate)
End If
// Get alternates for the specified line nodes.
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection theAlternates =
theInkAnalyzerBase.GetAlternates(theLineNodes);
// Use a helper method to get the user's choice of alternate.
System.Windows.Ink.AnalysisCore.AnalysisAlternateBase selectedAlternate =
this.SelectAnalysisAlternate(theAlternates);
// Set the chosen alternate as the top alternate.
if (confirmationEnabled)
{
// If node confirmation is enabled, use the current setting
// of confirmAutomatically to keep or clear the existing
// confirmation status of the line nodes.
theInkAnalyzerBase.ModifyTopAlternate(
selectedAlternate, confirmAutomatically);
}
else
{
// Otherwise, clear the confirmation as part of modifying
// the top alternate.
theInkAnalyzerBase.ModifyTopAlternate(selectedAlternate);
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
System.Windows.Ink.AnalysisCore 네임스페이스
System.Windows.Ink.AnalysisCore.AnalysisAlternateBase