업데이트: 2007년 11월
지정된 WordList 개체를 이 WordList 개체에 병합합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Sub Merge ( _
wl As WordList _
)
‘사용 방법
Dim instance As WordList
Dim wl As WordList
instance.Merge(wl)
public void Merge(
WordList wl
)
public:
void Merge(
WordList^ wl
)
public void Merge(
WordList wl
)
public function Merge(
wl : WordList
)
매개 변수
- wl
형식: Microsoft.Ink.WordList
이 WordList 개체에 병합할 지정된 WordList 개체입니다.
설명
이미 WordList 개체에 있는 단어는 한 번 더 추가되지 않습니다.
예제
이 예제에서는 두 WordList 개체를 만들고 단어를 해당 컬렉션에 추가합니다. Merge 메서드를 사용하여 두 WordList 개체의 내용을 결합합니다. 마지막으로 RecognizerContext 개체가 인스턴스화되고 첫 번째 WordList 개체가 해당 WordList 속성에 할당됩니다.
Dim wList1 As WordList = New WordList()
Dim wList2 As WordList = New WordList()
' add a single word to wList1
wList1.Add("thunk")
' add an array of words to wList2
Dim words() As String = {"Microsoft", "Tablet", "PC"}
wList2.Add(words)
' merge wList2 into wList1
wList1.Merge(wList2)
' create a new RecognizerContext object and assign wList1
Dim RC As RecognizerContext = New RecognizerContext()
RC.WordList = wList1
WordList wList1 = new WordList();
WordList wList2 = new WordList();
// add a single word to wList1
wList1.Add("thunk");
// add an array of words to wList2
string[] words = { "Microsoft", "Tablet", "PC" };
wList2.Add(words);
// merge wList2 into wList1
wList1.Merge(wList2);
// create a new RecognizerContext object and assign wList1
RecognizerContext RC = new RecognizerContext();
RC.WordList = wList1;
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원