Revit 2026 API
Task |
Shows a task dialog with title, main instruction, common buttons and default buttons.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static TaskDialogResult Show( string title, string mainInstruction, TaskDialogCommonButtons buttons, TaskDialogResult defaultButton )
Public Shared Function Show ( title As String, mainInstruction As String, buttons As TaskDialogCommonButtons, defaultButton As TaskDialogResult ) As TaskDialogResult
public: static TaskDialogResult Show( String^ title, String^ mainInstruction, TaskDialogCommonButtons buttons, TaskDialogResult defaultButton )
static member Show : title : string * mainInstruction : string * buttons : TaskDialogCommonButtons * defaultButton : TaskDialogResult -> TaskDialogResult
Parameters
- title String
- The title of the task dialog.
- mainInstruction String
- The main instruction of the task dialog.
- buttons TaskDialogCommonButtons
- The common buttons to be shown the task dialog.
- defaultButton TaskDialogResult
- The default button of the task dialog.
Return Value
TaskDialogResultThe user's response to the task dialog.
See Also