Share via


FileDialog.ButtonName Property

Returns or sets a String representing the text that is displayed on the action button of a file dialog box.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property ButtonName As String
    Get
    Set
'Usage
Dim instance As FileDialog
Dim value As String

value = instance.ButtonName

instance.ButtonName = value
string ButtonName { get; set; }

Property Value

Type: System.String

Remarks

By default, this property is set to the standard text for the type of file dialog box. For example, in the case of the Open dialog box, the property is set to "Open" by default. This string is limited to fifty-one characters.

See Also

Reference

FileDialog Interface

FileDialog Members

Microsoft.Office.Core Namespace