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

Return Value

Type: System.Boolean
Returns true on success, false otherwise.

.NET Framework Security

See Also

Reference

RdtManager Class

RdtManager Members

Microsoft.VisualStudio.Data.Schema.Project.Project Namespace