VisualStyleRenderer.GetColor(ColorProperty) Yöntem

Tanım

Geçerli görsel stili öğesi için belirtilen renk özelliğinin değerini döndürür.

public:
 System::Drawing::Color GetColor(System::Windows::Forms::VisualStyles::ColorProperty prop);
public System.Drawing.Color GetColor(System.Windows.Forms.VisualStyles.ColorProperty prop);
member this.GetColor : System.Windows.Forms.VisualStyles.ColorProperty -> System.Drawing.Color
Public Function GetColor (prop As ColorProperty) As Color

Parametreler

prop
ColorProperty

ColorProperty Geçerli görsel stili öğesi için hangi özellik değerinin alındığını belirten değerlerden biri.

Döndürülenler

Color Geçerli görsel stili öğesi için parametresi tarafından belirtilen özelliğin prop değerini içeren.

Özel durumlar

prop değerlerden ColorProperty biri değildir.

Açıklamalar

Görsel stiller, bir stil tarafından tanımlanan öğelerin bazı özelliklerini açıklamak için bir renk değerleri kümesi kullanır. Bu özellikler değerler tarafından ColorProperty kapsüllenir.

Şunlara uygulanır