VisualStyleRenderer.GetInteger(IntegerProperty) 方法

定義

傳回目前可視化樣式專案的指定整數屬性值。

public:
 int GetInteger(System::Windows::Forms::VisualStyles::IntegerProperty prop);
public int GetInteger(System.Windows.Forms.VisualStyles.IntegerProperty prop);
member this.GetInteger : System.Windows.Forms.VisualStyles.IntegerProperty -> int
Public Function GetInteger (prop As IntegerProperty) As Integer

參數

prop
IntegerProperty

其中一個 IntegerProperty 值是指定目前視覺樣式元素要取得哪個屬性值的。

傳回

由當前視覺風格元素參數指定的 prop 屬性整數值。

例外狀況

prop 不是其中 IntegerProperty 的價值觀之一。

備註

視覺風格使用一組整數值來描述樣式所定義元素的某些屬性。 這些屬性由數 IntegerProperty 值所概括。

適用於