Returns settings element by name.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2022
Syntax
| C# |
|---|
public static ExportPDFSettings FindByName( Document document, string name ) |
| Visual Basic |
|---|
Public Shared Function FindByName ( _ document As Document, _ name As String _ ) As ExportPDFSettings |
| Visual C++ |
|---|
public: static ExportPDFSettings^ FindByName( Document^ document, String^ name ) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document to find the settings with the specified name.
- name
- Type: System..::..String
Name of the settings to find.
Return Value
The settings element, or nullNothingnullptra null reference (Nothing in Visual Basic) if not found.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | name cannot include prohibited characters. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |