Export (0) Print
Expand All

VSConstants.VsTextBufferUserDataGuid Class

These are IVsUserData properties that are supported by the text buffer (DocData) object of the editor. You can get the IVsUserData interface by casting or (calling QueryInterface) on the IVsTextLines object of the Text Editor.

System.Object
  Microsoft.VisualStudio.VSConstants.VsTextBufferUserDataGuid

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

public static class VsTextBufferUserDataGuid

The VSConstants.VsTextBufferUserDataGuid type exposes the following members.

  NameDescription
Public fieldStatic memberBufferStorage_guidUsed to get access to the buffer's storage object. The returned pointer can be QI'd for IVsTextStorage and IVsPersistentTextImage. This is a read-only property. To set the storage, use the InitializeContentEx method.
Public fieldStatic memberBufferStorage_stringUsed to get access to the buffer's storage object. You can call QueryInterface on the returned pointer can be for IVsTextStorage and IVsPersistentTextImage. This is a read-only property. To set the storage, use the InitializeContentEx method.
Public fieldStatic memberPropertyBrowserSID_guidUsed to set the SEID_PropertyBrowserSID element of the selection for text views. This is used only if you have a custom property browser. If this property is not set, the standard property browser will be associated with the view.
Public fieldStatic memberPropertyBrowserSID_stringstring: This property will be used to set the SEID_PropertyBrowserSID element of the selection for text views. This is used only if you have a custom property browser. If this property is not set, the standard property browser will be associated with the view.
Public fieldStatic memberUserReadOnlyErrorString_guidProvides a specific error message 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 SetErrorInfo. The caller can decide whether to show the message to the user.
Public fieldStatic memberUserReadOnlyErrorString_stringProvides a specific error message 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 SetErrorInfo. The caller can decide whether to show the message to the user.
Public fieldStatic memberVsBufferContentType_guidThe IContentType of the text buffer.
Public fieldStatic memberVsBufferContentType_stringThe IContentType of the text buffer.
Public fieldStatic memberVsBufferDetectCharSet_guidbool: If true and the current BufferEncoding is CHARFMT_MBCS, the buffer runs its 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.
Public fieldStatic memberVsBufferDetectCharSet_stringbool: If true and the current BufferEncoding is CHARFMT_MBCS, the buffer will runs its 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.
Public fieldStatic memberVsBufferDetectLangSID_guidIf true, then a change to the buffer's moniker causes the buffer to change the language service based on the file extension of the moniker. The default is true.
Public fieldStatic memberVsBufferDetectLangSID_stringIf 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. The default is true.
Public fieldStatic memberVsBufferEncodingPromptOnLoad_guidThis should be used only by editor factories that want to specify a codepage on loading from the Open With dialog. You can use this data only to set the value, not to get the value after you have set it.
Public fieldStatic memberVsBufferEncodingPromptOnLoad_stringThis should be used only by editor factories that want to specify a codepage on loading from the Open With dialog. You can use this data only to set the value, not to get the value after you have set it.
Public fieldStatic memberVsBufferEncodingVSTFF_guid
Public fieldStatic memberVsBufferEncodingVSTFF_string
Public fieldStatic memberVsBufferExtraFiles_guidUse this property if the file opened in the buffer is associated with a list of extra files under source code control. Set this property with an implementation of IVsBufferExtraFiles in order to control how the buffer handles source code control operations. The IVsBufferExtraFiles object set determines which files are checked out from source code control when edits are made to the buffer. This property controls the behavior of AttemptToCheckOutBufferFromScc3 and GetBufferSccStatus3. It also determines which files are passed by the buffer when it calls IVsQueryEditQuerySave2 methods.
Public fieldStatic memberVsBufferExtraFiles_stringUse this property if the file opened in the buffer is associated with a list of extra files under source code control. Set this property with an implementation of IVsBufferExtraFiles in order to control how the buffer handles source code control operations. The IVsBufferExtraFiles object set determines which files are checked out from source code control when edits are made to the buffer. This property controls the behavior of AttemptToCheckOutBufferFromScc3 and GetBufferSccStatus3. It also determines which files are passed by the buffer when it calls IVsQueryEditQuerySave2 methods.
Public fieldStatic memberVsBufferFileReload_guidbool:
Public fieldStatic memberVsBufferFileReload_stringbool:
Public fieldStatic memberVsBufferIsDiskFile_guidtrue if the buffer is a file on disk.
Public fieldStatic memberVsBufferIsDiskFile_stringtrue if the buffer is a file on disk
Public fieldStatic memberVsBufferMoniker_guidThe moniker of the document loaded in the text buffer. It is the full path of the file if the document is a file.
Public fieldStatic memberVsBufferMoniker_stringThe moniker of the document loaded in the text buffer. It is the full path of the file if the document is a file.
Public fieldStatic memberVsInitEncodingDialogFromUserData_guidbool:
Public fieldStatic memberVsInitEncodingDialogFromUserData_stringbool:
Public fieldStatic memberVsTextViewRoles_guidThe comma-separated list of text view roles for the text view.
Public fieldStatic memberVsTextViewRoles_stringThe comma-separated list of text view roles for the text view.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft