TaskDialogButtonCollection.Add(String, Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and adds a TaskDialogButton to the collection.
public System.Windows.Forms.TaskDialogButton Add (string? text, bool enabled = true, bool allowCloseDialog = true);
override this.Add : string * bool * bool -> System.Windows.Forms.TaskDialogButton
Public Function Add (text As String, Optional enabled As Boolean = true, Optional allowCloseDialog As Boolean = true) As TaskDialogButton
Parameters
- text
- String
The text of the custom button.
- enabled
- Boolean
A value indicating whether the button can respond to user interaction.
- allowCloseDialog
- Boolean
A value that indicates whether the task dialog should close when this button is clicked.
Returns
The created TaskDialogButton.
Exceptions
This collection is currently bound to a task dialog.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.