IPersistentSpanFactory::CanCreate Method (ITextBuffer^)

Visual Studio 2015
 

Determines whether an IPersistentSpan can be created on the specified buffer.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

bool CanCreate(
	ITextBuffer^ buffer
)

Parameters

buffer
Type: Microsoft.VisualStudio.Text::ITextBuffer^

The buffer in question

Return Value

Type: System::Boolean

True if a span can be created, otherwise false.

Buffers that are not associated with ITextDocument objects cannot be used to create IPersistentSpan objects.

Return to top
Show: