VisualStyleRenderer.GetString(StringProperty) 方法

定义

返回当前视觉样式元素的指定字符串属性的值。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

参数

prop
StringProperty

StringProperty 值之一,指定要为当前视觉样式元素检索的属性值。One of the StringProperty values that specifies which property value to retrieve for the current visual style element.

返回

String,它包含 prop 参数为当前视觉样式元素指定的属性的值。A String that contains the value of the property specified by the prop parameter for the current visual style element.

异常

prop 不是 StringProperty 值之一。prop is not one of the StringProperty values.

注解

视觉样式使用一组字符串值来描述样式定义的元素的某些属性。Visual styles use a set of string values to describe some properties of the elements defined by a style. 这些属性由 StringProperty 值封装。These properties are encapsulated by the StringProperty values.

适用于