Edit

Share via


VisualStyleRenderer.GetString(StringProperty) Method

Definition

Returns the value of the specified string property for the current visual style element.

public:
 System::String ^ GetString(System::Windows::Forms::VisualStyles::StringProperty prop);
public string GetString (System.Windows.Forms.VisualStyles.StringProperty prop);
member this.GetString : System.Windows.Forms.VisualStyles.StringProperty -> string
Public Function GetString (prop As StringProperty) As String

Parameters

prop
StringProperty

One of the StringProperty values that specifies which property value to retrieve for the current visual style element.

Returns

A String that contains the value of the property specified by the prop parameter for the current visual style element.

Exceptions

prop is not one of the StringProperty values.

Remarks

Visual styles use a set of string values to describe some properties of the elements defined by a style. These properties are encapsulated by the StringProperty values.

Applies to