VisualStyleElement.CreateElement(String, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定的類別、部分和狀態值建立新的視覺風格元素。
public:
static System::Windows::Forms::VisualStyles::VisualStyleElement ^ CreateElement(System::String ^ className, int part, int state);
public static System.Windows.Forms.VisualStyles.VisualStyleElement CreateElement(string className, int part, int state);
static member CreateElement : string * int * int -> System.Windows.Forms.VisualStyles.VisualStyleElement
Public Shared Function CreateElement (className As String, part As Integer, state As Integer) As VisualStyleElement
參數
- className
- String
一個字串,代表要建立的視覺風格元素的類別名稱。
- part
- Int32
一個代表視覺風格元素中要建立的部分的值。
- state
- Int32
一個代表要建立視覺風格元素狀態的值。
傳回
A VisualStyleElement 具有 ClassName、 Part,屬性 State 初始化為 className、 part和 state 參數。