VisualStyleRenderer.GetString(StringProperty) 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.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈