IPersistentSpanFactory.CanCreate(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.