Share via


VSConstants.VsTextBufferUserDataGuid Class

Definition

These are IVsUserData properties that are supported by the TextBuffer (DocData) object of the Source Code (Text) Editor. The IVsUserData interface is retrieved by QueryInterface on the IVsTextLines object of the Text Editor.

public: ref class VSConstants::VsTextBufferUserDataGuid abstract sealed
class VSConstants::VsTextBufferUserDataGuid abstract sealed
public static class VSConstants.VsTextBufferUserDataGuid
type VSConstants.VsTextBufferUserDataGuid = class
Public Class VSConstants.VsTextBufferUserDataGuid
Inheritance
VSConstants.VsTextBufferUserDataGuid

Fields

BufferStorage_guid

object: This property is used to get access to the buffer's storage object. The returned pointer can be QI'd for IVsTextStorage and IVsPersistentTextImage. This is a get-only property. To set the storage, use the buffer's InitializeContentEx method.

BufferStorage_string

object: This property is used to get access to the buffer's storage object. The returned pointer can be QI'd for IVsTextStorage and IVsPersistentTextImage. This is a get-only property. To set the storage, use the buffer's InitializeContentEx method.

PropertyBrowserSID_guid

string: This property will be used to set the SEID_PropertyBrowserSID element of the selection for text views. This is only used if you have a custom property browser. If this property is not set, the standard property browser will be associated with the view.

PropertyBrowserSID_string

string: This property will be used to set the SEID_PropertyBrowserSID element of the selection for text views. This is only used if you have a custom property browser. If this property is not set, the standard property browser will be associated with the view.

UserReadOnlyErrorString_guid

string: This property provides a specific error message for when the buffer originates the BUFFER_E_READONLY error. Set this string to be the (localized) text you want displayed to the user. Note that the buffer itself does not put up UI, but only calls IVsUIShell::SetErrorInfo. The caller can decide whether to show the message to the user.

UserReadOnlyErrorString_string

string: This property provides a specific error message for when the buffer originates the BUFFER_E_READONLY error. Set this string to be the (localized) text you want displayed to the user. Note that the buffer itself does not put up UI, but only calls IVsUIShell::SetErrorInfo. The caller can decide whether to show the message to the user.

VsBufferContentType_guid

string: The ContentType for the text buffer.

VsBufferContentType_string

string: The ContentType for the text buffer.

VsBufferDetectCharSet_guid

bool: If true and the current BufferEncoding is CHARFMT_MBCS, the buffer will runs it's HTML charset tag detection code to determine a codepage to load and save the file. The detected codepage overrides any codepage set in CHARFMT_MBCS. This is forced on in the buffer's IPersistFileFormat::LoadDocData when it sees an HTML type of file, according to the extension mapping in "$RootKey$\Languages\File Extensions".

VsBufferDetectCharSet_string

bool: If true and the current BufferEncoding is CHARFMT_MBCS, the buffer will runs it's HTML charset tag detection code to determine a codepage to load and save the file. The detected codepage overrides any codepage set in CHARFMT_MBCS. This is forced on in the buffer's IPersistFileFormat::LoadDocData when it sees an HTML type of file, according to the extension mapping in "$RootKey$\Languages\File Extensions".

VsBufferDetectLangSID_guid

bool: (default = true) If true then a change to the buffer's moniker will cause the buffer to change the language service based on the file extension of the moniker.

VsBufferDetectLangSID_string

bool: (default = true) If true then a change to the buffer's moniker will cause the buffer to change the language service based on the file extension of the moniker.

VsBufferEncodingPromptOnLoad_guid

uint: This should only be used by editor factories that want to specify a codepage on loading from the openwith dialog. This data is only for a set purpose. You cannot get the value of this back.

VsBufferEncodingPromptOnLoad_string

uint: This should only be used by editor factories that want to specify a codepage on loading from the openwith dialog. This data is only for a set purpose. You cannot get the value of this back.

VsBufferEncodingVSTFF_guid

uint: VS Text File Format (VSTFF) for buffer. codepage = bufferVSTFF & __VSTFF.VSTFF_CPMASK; vstffFlags = bufferVSTFF & __VSTFF.VSTFF_FLAGSMASK;.

VsBufferEncodingVSTFF_string

uint: VS Text File Format (VSTFF) for buffer. codepage = bufferVSTFF & __VSTFF.VSTFF_CPMASK; vstffFlags = bufferVSTFF & __VSTFF.VSTFF_FLAGSMASK;.

VsBufferExtraFiles_guid

object: Use this property if the file opened in the buffer is associated with list of extra files under source code control (SCC). Set this property with an implementation of IVsBufferExtraFiles in order to control how the buffer handles SCC operations. The IVsBufferExtraFiles object set will determine what files are checked out from Source Code Control (SCC) when edits are made to the buffer. This property controls the behavior of IVsTextManager2::AttemptToCheckOutBufferFromScc3 and GetBufferSccStatus3 as well as which files are passed by the buffer when it calls IVsQueryEditQuerySave2 methods.

VsBufferExtraFiles_string

object: Use this property if the file opened in the buffer is associated with list of extra files under source code control (SCC). Set this property with an implementation of IVsBufferExtraFiles in order to control how the buffer handles SCC operations. The IVsBufferExtraFiles object set will determine what files are checked out from Source Code Control (SCC) when edits are made to the buffer. This property controls the behavior of IVsTextManager2::AttemptToCheckOutBufferFromScc3 and GetBufferSccStatus3 as well as which files are passed by the buffer when it calls IVsQueryEditQuerySave2 methods.

VsBufferFileReload_guid

bool:.

VsBufferFileReload_string

bool:.

VsBufferIsDiskFile_guid

bool: true if buffer is a file on disk.

VsBufferIsDiskFile_string

bool: true if buffer is a file on disk.

VsBufferMoniker_guid

string: Moniker of document loaded in the TextBuffer. It will be the full path of file if the document is a file.

VsBufferMoniker_string

string: Moniker of document loaded in the buffer. It will be the full path of file if the document is a file.

VsInitEncodingDialogFromUserData_guid

bool:.

VsInitEncodingDialogFromUserData_string

bool:.

VsTextViewRoles_guid

string: The comma-separated list of text view roles for the text view.

VsTextViewRoles_string

string: The comma-separated list of text view roles for the text view.

Applies to