InkAnalyzerBase.GetStrokeLanguageId - метод
Обновлен: Ноябрь 2007
Returns the locale identifier for the specified stroke.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public Function GetStrokeLanguageId ( _
strokeId As Integer _
) As Integer
'Применение
Dim instance As InkAnalyzerBase
Dim strokeId As Integer
Dim returnValue As Integer
returnValue = instance.GetStrokeLanguageId(strokeId)
public int GetStrokeLanguageId(
int strokeId
)
public:
int GetStrokeLanguageId(
int strokeId
)
public int GetStrokeLanguageId(
int strokeId
)
public function GetStrokeLanguageId(
strokeId : int
) : int
Параметры
- strokeId
Тип: System.Int32
The stroke identifier.
Возвращаемое значение
Тип: System.Int32
The locale identifier for the specified stroke.
Заметки
The stroke's locale is set when you add the stroke by calling AddStroke or AddStrokes. To change the stroke's locale, use SetStrokeLanguageId or SetStrokesLanguageId.
Примеры
The following example checks the locale identifier of a specified stroke and sets it to Japanese if it is not already set to Japanese. The InkAnalyzerBase, theInkAnalyzerBase, contains stroke data for the stroke identifier, theStrokeId.
' If the specified stroke is not set to Japanese, 0x0011,
' Set the stroke's locale to Japanese.
Dim languageId As Integer = _
theInkAnalyzerBase.GetStrokeLanguageId(theStrokeId)
If &H11 <> languageId Then
theInkAnalyzerBase.SetStrokeLanguageId(theStrokeId, &H11)
End If
// If the specified stroke is not set to Japanese, 0x0011,
// Set the stroke's locale to Japanese.
int languageId = theInkAnalyzerBase.GetStrokeLanguageId(theStrokeId);
if (0x0011 != languageId)
{
theInkAnalyzerBase.SetStrokeLanguageId(theStrokeId, 0x0011);
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink.AnalysisCore - пространство имен