RdtManager.GetTextLines Method
Returns an IVsTextLines from a file. If that file is in the RDT, get the text buffer from it. If the file is not in the RDT, open the file in the invisible editor and get the text buffer from it. If getting text buffer fails, return null.
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 GetTextLines ( _
fullPathFileName As String _
) As IVsTextLines
'Usage
Dim fullPathFileName As String
Dim returnValue As IVsTextLines
returnValue = RdtManager.GetTextLines(fullPathFileName)
public static IVsTextLines GetTextLines(
string fullPathFileName
)
public:
static IVsTextLines^ GetTextLines(
String^ fullPathFileName
)
public static function GetTextLines(
fullPathFileName : String
) : IVsTextLines
static member GetTextLines :
fullPathFileName:string -> IVsTextLines
Parameters
- fullPathFileName
Type: System.String
The filename
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
.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