Which dialog control has a Document property?

  1. PrintDialog

  2. PrintPreview

  3. PageSetupDialog

  4. Both a and b.

  5. All of the above.


Correct Option: E
Explanation:

The Document property is a property of dialog controls that allows you to access the document that is being printed, previewed, or set up. All three of the dialog controls listed in the question have a Document property. Therefore, the correct answer is E. All of the above.

Explanation for Option A:

The PrintDialog dialog control is used to print a document. The Document property of the PrintDialog dialog control returns a reference to the document that is being printed.

Explanation for Option B:

The PrintPreview dialog control is used to preview a document before it is printed. The Document property of the PrintPreview dialog control returns a reference to the document that is being previewed.

Explanation for Option C:

The PageSetupDialog dialog control is used to set up the page layout for a document. The Document property of the PageSetupDialog dialog control returns a reference to the document that is being set up.

Correct Answer:

The correct answer is E. All of the above. This is because all three of the dialog controls listed in the question have a Document property.

Find more quizzes: