VisualStyleRenderer.GetFilename(FilenameProperty) 方法

定義

為目前的視覺化樣式項目傳回指定的檔名屬性值。

public:
 System::String ^ GetFilename(System::Windows::Forms::VisualStyles::FilenameProperty prop);
public string GetFilename (System.Windows.Forms.VisualStyles.FilenameProperty prop);
member this.GetFilename : System.Windows.Forms.VisualStyles.FilenameProperty -> string
Public Function GetFilename (prop As FilenameProperty) As String

參數

prop
FilenameProperty

FilenameProperty 的其中一個值,指定要為目前視覺樣式項目擷取的屬性值。

傳回

String,包含由目前視覺化樣式項目 prop 參數所指定的屬性值。

例外狀況

prop 不是其中一個 FilenameProperty 值。

備註

視覺化樣式可以指定影像檔的名稱,這些檔案可用來以不同的大小和解析度繪製特定元素。 這些檔案名會由 FilenameProperty 值封裝。

適用於