IPeekResultFactory::Create Method (IPeekResultDisplayInfo2^, ImageMoniker, String^, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Guid)
Creates an instance of IPeekResult that is based on a location in a document.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
IDocumentPeekResult^ Create( IPeekResultDisplayInfo2^ displayInfo, ImageMoniker image, String^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly, Guid editorDestination )
Parameters
- displayInfo
-
Type:
Microsoft.VisualStudio.Language.Intellisense::IPeekResultDisplayInfo2^
Defines properties used for displaying this result to the user.
- filePath
-
Type:
System::String^
The fully qualified file path identifying the document where the result is located.
- startLine
-
Type:
System::Int32
Line number of the result location's start position.
- startIndex
-
Type:
System::Int32
Character index of the result location's start position.
- endLine
-
Type:
System::Int32
Line number of the result location's end position.
- endIndex
-
Type:
System::Int32
Character index of the result location's end position.
- idStartLine
-
Type:
System::Int32
Line number of the result's identifying span's start position (e.g a position of method's name token).
- idStartIndex
-
Type:
System::Int32
Character index of the result's identifying span's start position (e.g a position of method's name token).
- idEndLine
-
Type:
System::Int32
Line number of the result's identifying span's end position.
- idEndIndex
-
Type:
System::Int32
Character index of the result's identifying span's end position.
- isReadOnly
-
Type:
System::Boolean
Defines whether this result is read-only.
- editorDestination
-
Type:
System::Guid
A Guid representing the editor the IDocumentPeekResult should navigate to.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense::IDocumentPeekResult^A valid instance of IDocumentPeekResult.