ITextViewLine.GetNormalizedTextBounds, méthode

Obtient une collection de structures TextBounds pour le texte correspondant à l'étendue donnée.

Espace de noms :  Microsoft.VisualStudio.Text.Formatting
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Function GetNormalizedTextBounds ( _
    bufferSpan As SnapshotSpan _
) As Collection(Of TextBounds)
Collection<TextBounds> GetNormalizedTextBounds(
    SnapshotSpan bufferSpan
)
Collection<TextBounds>^ GetNormalizedTextBounds(
    SnapshotSpan bufferSpan
)
abstract GetNormalizedTextBounds : 
        bufferSpan:SnapshotSpan -> Collection<TextBounds> 
function GetNormalizedTextBounds(
    bufferSpan : SnapshotSpan
) : Collection<TextBounds>

Paramètres

Valeur de retour

Type : Collection<TextBounds>
Collection de structures TextBounds qui contiennent le texte spécifié dans le bufferSpan.

Exceptions

Exception Condition
ArgumentOutOfRangeException

bufferSpan n'est pas une plage autorisée dans la mémoire tampon de texte sous-jacente.

Notes

Si la ligne contient le texte bidirectionnel, les structures d'TextBounds qui sont retournées peuvent être disjoints. La hauteur et le haut des limites correspondront en haut et en bas de cet ITextViewLine.

Sécurité .NET Framework

Voir aussi

Référence

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting, espace de noms