PrintSetup.Rename Method

PrintSetupRename Method

Rename the current print setting with the specified name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool Rename(
	string newName
)
Public Function Rename ( 
	newName As String
) As Boolean
public:
bool Rename(
	String^ newName
)
member Rename : 
        newName : string -> bool 

Parameters

newName  String
print setting name to be renamed as.

Return Value

Boolean
False if Rename operation fails, otherwise true.
Exceptions
ExceptionCondition
InvalidOperationException Thrown when the input newName already exists in current print setting list.
See Also