Revit 2026 API
Task |
The default button for the dialog.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public TaskDialogResult DefaultButton { get; set; }
Public Property DefaultButton As TaskDialogResult Get Set
public: property TaskDialogResult DefaultButton { TaskDialogResult get (); void set (TaskDialogResult value); }
member DefaultButton : TaskDialogResult with get, set
Property Value
TaskDialogResult
If DefaultButton is TaskDialogResult.None or its value does not correspond to any CommonButton or CommandLink in the dialog,
then the first button in the dialog will be the default.
See Also