다음을 통해 공유


WordList.Remove 메서드

업데이트: 2007년 11월

WordList 개체에서 단일 문자열을 제거합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Sub Remove ( _
    s As String _
)
‘사용 방법
Dim instance As WordList
Dim s As String

instance.Remove(s)
public void Remove(
    string s
)
public:
void Remove(
    String^ s
)
public void Remove(
    String s
)
public function Remove(
    s : String
)

매개 변수

설명

단어 목록에 문자열을 추가하면 대문자 버전도 암시적으로 추가됩니다. 예를 들어 "hello"를 추가하면 "Hello" 및 "HELLO"가 암시적으로 추가됩니다. 따라서 "hello"를 제거해도 "Hello"와 "HELLO"가 암시적으로 제거되지 않습니다. 하지만 "hello"를 추가한 다음 Remove 메서드에 "Hello"를 전달하는 경우 "Hello"를 명시적으로 추가하지 않았기 때문에 해당 호출이 적용되지 않습니다.

WordList 개체에는 단어, 구, 파트 번호의 문자열 표현 또는 사용자가 입력할 수 있지만 시스템 사전에 없는 기타 문자열이 포함될 수 있습니다.

예제

이 C# 예제에서는 StringCollection인 theUserDictionary이 모든 단어를 RecognizerContext.WordList에서 제거하는 예제를 보여 줍니다.

using System.Collections.Specialized;
using Microsoft.Ink
//...
RecognizerContext theRecognizerContext;
StringCollection theUserDictionary;
//...
// Initialize the theRecognizerContext and theUserDictionary objects here.
//...
foreach (string theString in theUserDictionary)
{
    theRecognizerContext.WordList.Remove(theString);
}
//...

이 Microsoft® Visual Basic® .NET 예제에서는 StringCollection인 theUserDictionary의 모든 단어를 RecognizerContext.WordList에서 제거하는 예제를 보여 줍니다.

Imports System.Collections.Specialized
Imports Microsoft.Ink
'...
Dim theRecognizerContext As RecognizerContext
Dim theUserDictionary As StringCollection
'...
'Initialize the theRecognizerContext and theUserDictionary objects here.
'...
Dim theString As String
For Each theString In theUserDictionary
    theRecognizerContext.WordList.Remove(theString)
Next
'...

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

WordList 클래스

WordList 멤버

Microsoft.Ink 네임스페이스

RecognizerContext

WordList.Add