SpellChecker.SpellCheck - Méthode
Implémente le service Web qui expose le vérificateur d'orthographe.
Espace de noms : Microsoft.SharePoint.Publishing
Assembly : Microsoft.SharePoint.Publishing (dans Microsoft.SharePoint.Publishing.dll)
Syntaxe
'Déclaration
<WebMethodAttribute> _
Public Function SpellCheck ( _
chunksToSpell As String(), _
declaredLanguage As Integer, _
useLad As Boolean _
) As SpellCheckResults
'Utilisation
Dim instance As SpellChecker
Dim chunksToSpell As String()
Dim declaredLanguage As Integer
Dim useLad As Boolean
Dim returnValue As SpellCheckResults
returnValue = instance.SpellCheck(chunksToSpell, _
declaredLanguage, useLad)
[WebMethodAttribute]
public SpellCheckResults SpellCheck(
string[] chunksToSpell,
int declaredLanguage,
bool useLad
)
Paramètres
chunksToSpell
Type : []Blocs de texte pour la vérification orthographique.
declaredLanguage
Type : System.Int32Langage de vérifier l'orthographe à nouveau.
useLad
Type : System.BooleanDétecter la langue si possible.
Valeur renvoyée
Type : Microsoft.SharePoint.Publishing.SpellCheckResults
Une structure SpellCheckResults qui contient des informations sur l'analyse du vérificateur d'orthographe.
Remarques
Un segment peut être constitué de plusieurs mots, qui sont analysés en même temps.