Command.RunCommand()
is documented:
Calling this method is the equivalent of adding the single line with the AddLine method and then calling the Run method.
This isn't quite true:
// Goes down 2 items.
var cmd = DOpus.Create().Command();
cmd.RunCommand("Select NEXT");
cmd.RunCommand("Select NEXT");
// Goes down 3 items.
var cmd = DOpus.Create().Command();
cmd.AddLine("Select NEXT");
cmd.Run();
cmd.AddLine("Select NEXT");
cmd.Run();
RunCommand()
is like calling Clear()
also. (Even more internal calls?)
But since these go down just 2 items, it's better described as a nested layer, right?
// Goes down 2 items.
var cmd = DOpus.Create().Command();
cmd.RunCommand("Select NEXT");
cmd.AddLine("Select NEXT");
cmd.Run();
// Goes down 2 items.
var cmd = DOpus.Create().Command();
cmd.AddLine("Select NEXT");
cmd.Run();
cmd.RunCommand("Select NEXT");
PS: Maybe a new "documentation" category in "Help & Support" would be useful, so I don't have to label documentation bugs or imperfections as software bugs.