次の方法で共有


VsTextBufferClass.IVsTextLines_InitializeContent(String, Int32) Method

Definition

Initializes the content of the text buffer.

public:
 virtual int IVsTextLines_InitializeContent(System::String ^ pszText, int iLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::InitializeContent;
public:
 virtual int IVsTextLines_InitializeContent(System::String ^ pszText, int iLength);
public:
 virtual int IVsTextLines_InitializeContent(Platform::String ^ pszText, int iLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::InitializeContent;
 virtual int IVsTextLines_InitializeContent(std::wstring const & pszText, int iLength);
public virtual int IVsTextLines_InitializeContent (string pszText, int iLength);
abstract member IVsTextLines_InitializeContent : string * int -> int
override this.IVsTextLines_InitializeContent : string * int -> int
Public Overridable Function IVsTextLines_InitializeContent (pszText As String, iLength As Integer) As Integer

Parameters

pszText
String

[in] Text to insert into the buffer.

iLength
Int32

[in] Number of characters to be inserted.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Applies to