RdtManager.TryGetTextLinesAndInvisibleEditor Method
Opens the file in the invisible editor in the RDT and gets the text buffer from it.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function TryGetTextLinesAndInvisibleEditor ( _
fullPathFileName As String, _
<OutAttribute> ByRef spEditor As IVsInvisibleEditor, _
<OutAttribute> ByRef textLines As IVsTextLines _
) As Boolean
'Usage
Dim fullPathFileName As String
Dim spEditor As IVsInvisibleEditor
Dim textLines As IVsTextLines
Dim returnValue As Boolean
returnValue = RdtManager.TryGetTextLinesAndInvisibleEditor(fullPathFileName, _
spEditor, textLines)
public static bool TryGetTextLinesAndInvisibleEditor(
string fullPathFileName,
out IVsInvisibleEditor spEditor,
out IVsTextLines textLines
)
public:
static bool TryGetTextLinesAndInvisibleEditor(
String^ fullPathFileName,
[OutAttribute] IVsInvisibleEditor^% spEditor,
[OutAttribute] IVsTextLines^% textLines
)
public static function TryGetTextLinesAndInvisibleEditor(
fullPathFileName : String,
spEditor : IVsInvisibleEditor,
textLines : IVsTextLines
) : boolean
static member TryGetTextLinesAndInvisibleEditor :
fullPathFileName:string *
spEditor:IVsInvisibleEditor *
textLines:IVsTextLines -> bool
Parameters
- fullPathFileName
Type: System.String
The file to query
- spEditor
Type: Microsoft.VisualStudio.Shell.Interop.IVsInvisibleEditor%
The invisible editor
- textLines
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines%
The text buffer
Return Value
Type: System.Boolean
Returns true on success, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace