ProvideLanguageServiceAttribute.SupportCopyPasteOfHTML Property
Determines if the language service supports the clipboard format HTML for copy and paste operations.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Property SupportCopyPasteOfHTML As Boolean
public bool SupportCopyPasteOfHTML { get; set; }
public:
property bool SupportCopyPasteOfHTML {
bool get ();
void set (bool value);
}
member SupportCopyPasteOfHTML : bool with get, set
function get SupportCopyPasteOfHTML () : boolean
function set SupportCopyPasteOfHTML (value : boolean)
Property Value
Type: System.Boolean
Returns true if the HTML clipboard format is supported, otherwise, returns false.
Remarks
A language service can support additional clipboard formats beyond what Visual Studio supports and one common format is HTML. If a language service explicitly supports copying to HTML and pasting from HTML, then it should set the SupportCopyPasteOfHTML property to true. This mean the language service can convert the contents of a source file to and from HTML.
This property is available to any language service implementation.
The default is false indicating the HTML clipboard format is not supported.
The registry entry looks like this:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
[Language Name]\
Support CF_HTML = reg_dword: 0x00000001
Examples
[ProvideLanguageService(typeof(MyLanguageService), // Required
MyConstants.languageName, // Required
MyConstants.languageNameResourceID, // Required
// Optional language service properties
SupportCopyPasteOfHTML = true, // HTML clipboard format supported
)]
.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.