ITextBuffer.IsReadOnly, méthode (Span)

Détermine si une modification ou suppression de texte serait interdite au niveau de l'span à cause d'une IReadOnlyRegion.

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

Syntaxe

'Déclaration
Function IsReadOnly ( _
    span As Span _
) As Boolean
bool IsReadOnly(
    Span span
)
bool IsReadOnly(
    Span span
)
abstract IsReadOnly : 
        span:Span -> bool
function IsReadOnly(
    span : Span
) : boolean

Paramètres

Valeur de retour

Type : Boolean
tru e si l'étendue entière a pu être supprimée ou remplacée ; sinon false.

Exceptions

Exception Condition
ArgumentNullException

span a la valeur nullune référence null (Nothing en Visual Basic).

InvalidOperationException

TakeThreadOwnership a été précédemment appelé, et cet appel est effectué d'un thread différent.

ArgumentOutOfRangeException

La propriété d'End d'span est plus supérieure à la longueur d'CurrentSnapshot.

Sécurité .NET Framework

Voir aussi

Référence

ITextBuffer Interface

IsReadOnly, surcharge

Microsoft.VisualStudio.Text, espace de noms