ITextImageFactoryService.CreateTextImage 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.
Overloads
CreateTextImage(String) |
Create an ITextImage that contains |
CreateTextImage(TextReader, Int64) |
Create an ITextImage that contains the contents of |
CreateTextImage(String)
Create an ITextImage that contains text
.
public:
Microsoft::VisualStudio::Text::ITextImage ^ CreateTextImage(System::String ^ text);
public Microsoft.VisualStudio.Text.ITextImage CreateTextImage (string text);
abstract member CreateTextImage : string -> Microsoft.VisualStudio.Text.ITextImage
Public Function CreateTextImage (text As String) As ITextImage
Parameters
- text
- String
Returns
Applies to
CreateTextImage(TextReader, Int64)
Create an ITextImage that contains the contents of reader
.
public Microsoft.VisualStudio.Text.ITextImage CreateTextImage (System.IO.TextReader reader, long length = -1);
abstract member CreateTextImage : System.IO.TextReader * int64 -> Microsoft.VisualStudio.Text.ITextImage
Public Function CreateTextImage (reader As TextReader, Optional length As Long = -1) As ITextImage
Parameters
- reader
- TextReader
Source of text
- length
- Int64
An estimate of the total length of the file. -1 if the file size is unknown.
Returns
Remarks
The length
is used to decide whether or not to attempt to compress the text read from reader
. It does not need to be accurate.