Udostępnij za pośrednictwem


IPersistentSpanFactory.CanCreate(ITextBuffer) Method

Definition

Can an IPersistentSpan be created on the specified buffer.

public:
 bool CanCreate(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
public:
 bool CanCreate(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
bool CanCreate(Microsoft::VisualStudio::Text::ITextBuffer const & buffer);
public bool CanCreate (Microsoft.VisualStudio.Text.ITextBuffer buffer);
abstract member CanCreate : Microsoft.VisualStudio.Text.ITextBuffer -> bool
Public Function CanCreate (buffer As ITextBuffer) As Boolean

Parameters

buffer
ITextBuffer

Buffer in question.

Returns

True if a span can be created.

Remarks

Buffers that are not associated with ITextDocuments can not be used to create IPersistentSpan.

Applies to