Application.ShowFontDialog Method
SharePoint Designer Developer Reference |
Displays the Font dialog box and returns a String that represents the cascading style sheet properties for the selected font characteristics.
Syntax
expression.ShowFontDialog(strCSSIn)
expression Required. A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
strCSSIn | Optional | Variant | A String that represents the initial custom settings for the dialog box. |
Return Value
String
Remarks
This method returns a value when the user clicks OK. If the user clicks Cancel, this method returns an empty String.
Example
The following example displays the Font dialog box, and then sets the font style for the active element to the font settings returned.
Visual Basic for Applications |
---|
|
See Also