Editar

Partilhar via


VisualStyleRenderer.GetFilename(FilenameProperty) Method

Definition

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

Parameters

prop
FilenameProperty

One of the 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.

Exceptions

prop is not one of the FilenameProperty values.

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 FilenameProperty values.

Applies to