VsTextBufferCoordinatorClass.SetSpanMappings(Int32, NewSpanMapping[]) 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.
Establishes the list of mappings between the primary and secondary buffers.
public:
virtual int SetSpanMappings(int cSpans, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewSpanMapping> ^ rgSpans) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::SetSpanMappings;
public:
virtual int SetSpanMappings(int cSpans, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewSpanMapping> ^ rgSpans);
virtual int SetSpanMappings(int cSpans, std::Array <Microsoft::VisualStudio::TextManager::Interop::NewSpanMapping> const & rgSpans);
public virtual int SetSpanMappings (int cSpans, Microsoft.VisualStudio.TextManager.Interop.NewSpanMapping[] rgSpans);
abstract member SetSpanMappings : int * Microsoft.VisualStudio.TextManager.Interop.NewSpanMapping[] -> int
override this.SetSpanMappings : int * Microsoft.VisualStudio.TextManager.Interop.NewSpanMapping[] -> int
Public Overridable Function SetSpanMappings (cSpans As Integer, rgSpans As NewSpanMapping()) As Integer
Parameters
- cSpans
- Int32
[in] The number of mappings specified in the rgSpans
array.
- rgSpans
- NewSpanMapping[]
[in] An array of NewSpanMapping structures each of which specify a single mapping between the primary and secondary buffers.
Returns
If successful, returns S_OK; otherwise, returns an error code.