IVsUIShell5::GetThemedColor Method (Guid, String^, UInt32)

 

Gets the current RGBA value of a themed color. This method fails if the color does not exist.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

unsigned int GetThemedColor(
	[InAttribute] Guid% colorCategory,
	String^ colorName,
	unsigned int colorType
)

Parameters

colorCategory
Type: System::Guid

[in] The color category of the themed color.

colorName
Type: System::String^

[in] The color name of the themed color.

colorType
Type: System::UInt32

[in] The color type of the themed color.

Return Value

Type: System::UInt32

The RGBA value of the themed color.

The color categories are the following:

  1. GUID_EnvironmentColorsCategory: {624ed9c3-bdfd-41fa-96c3-7c824ea32e3d}

  2. GUID_TreeViewColorsCatetory: {92ecf08e-8b13-4cf4-99e9-ae2692382185}

  3. GUID_HeaderColorsCatetory: {4997f547-1379-456e-b985-2f413cdfa536}

  4. GUID_SearchControlColorsCatetory: {f1095fad-881f-45f1-8580-589e10325eb8}

Return to top
Show: