VisualStyleRenderer.GetString(StringProperty) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回目前可視化樣式專案的指定字串屬性值。
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 值是指定目前視覺樣式元素要取得哪個屬性值的。
傳回
String A 包含當前視覺樣式元素參數所指定的prop屬性值。
例外狀況
prop 不是其中 StringProperty 的價值觀之一。
備註
視覺樣式使用一組字串值來描述樣式所定義元素的某些屬性。 這些屬性由數 StringProperty 值所概括。