VsShellUtilities.ToDpiContext(__VSDPIMODE) 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.
Converts a __VSDPIMODE to a DpiAwarenessContext. If an unsupported/unknown __VSDPIMODE is given, this method will throw a NotSupportedException.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::VisualStudio::Utilities::DpiAwarenessContext ToDpiContext(Microsoft::VisualStudio::Shell::Interop::__VSDPIMODE mode);
public static Microsoft.VisualStudio.Utilities.DpiAwarenessContext ToDpiContext (this Microsoft.VisualStudio.Shell.Interop.__VSDPIMODE mode);
static member ToDpiContext : Microsoft.VisualStudio.Shell.Interop.__VSDPIMODE -> Microsoft.VisualStudio.Utilities.DpiAwarenessContext
<Extension()>
Public Function ToDpiContext (mode As __VSDPIMODE) As DpiAwarenessContext
Parameters
- mode
- __VSDPIMODE