Please guys, learn to learn!
To do so efficiently, you often need to read the documentation and test things yourself.
By the way, rereading my first answer above, I note that this advice applies to me myself as well.
Sorry for not taking a closer look myself the first time around.
The documentation already says it all:
https://www.revitapidocs.com/2020/b3a3412b-1f70-f7a6-a97f-12c51eaff104.htm
Enables a marquee style progress bar to be displayed in the TaskDialog.
When true, the TaskDialog will display a progress bar that has an indeterminate start and stop. A progress bar is a window that an application can use to indicate the progress of a lengthy operation. It consists of a rectangle that is animated as an operation progresses. The animation continues until the TaskDialog is closed. The default value is false.
Here is some sample code:
TaskDialog d = new TaskDialog( "Test Marquee" );
d.MainContent = "Testing the EnableMarqueeProgressBar property";
d.MainInstruction = "Click 'Close'";
d.EnableMarqueeProgressBar = true;
d.Show();
I attached a full solution.
It took a handful of minutes to put together and test.
Please do so yourself next time before asking questions like this.
It will save time for yourself, not to mention others.
Cheers,
Jeremy