VisualStyleRenderer.GetFilename(FilenameProperty) 方法

定义

返回当前视觉样式元素的指定文件名属性的值。Returns the value of the specified file name property for the current visual style element.

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 值之一,指定要为当前视觉样式元素检索的属性值。One of the FilenameProperty values that specifies which property value to retrieve for the current visual style element.

返回

String,它包含 prop 参数为当前视觉样式元素指定的属性的值。A String that contains the value of the property specified by the prop parameter for the current visual style element.

异常

prop 不是 FilenameProperty 值之一。prop is not one of the FilenameProperty values.

注解

视觉样式可指定用于绘制不同大小和分辨率中的特定元素的图像文件的名称。Visual styles can specify the names of image files that are used to draw a particular element in different sizes and resolutions. 这些文件名由 FilenameProperty 值封装。These file names are encapsulated by the FilenameProperty values.

适用于