System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetFilename Method

Returns the value of the specified file name property for the current visual style element.

Syntax

public string GetFilename (FilenameProperty prop)

Parameters

prop
One of the System.Windows.Forms.VisualStyles.FilenameProperty values that specifies which property value to retrieve for the current visual style element.

Returns

A string that contains the value of the property specified by the prop parameter for the current visual style element.

Remarks

Visual styles can specify the names of image files that are used to draw a particular element in different sizes and resolutions. These file names are encapsulated by the System.Windows.Forms.VisualStyles.FilenameProperty values.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0