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 的其中一個值,指定要為目前視覺樣式項目擷取的屬性值。

傳回

Int32

由目前視覺化樣式項目之 prop 參數指定的屬性整數值。

例外狀況

prop 不是其中一個 IntegerProperty 值。

備註

視覺化樣式會使用一組整數值來描述樣式所定義之元素的某些屬性。 這些屬性會由 IntegerProperty 值封裝。

適用於