A button for use in a CustomMessageBox.
More...
|
string | Name [get] |
| Gets the unique name of this button. More...
|
|
object | Content [get] |
| Gets the content displayed in this button. More...
|
|
A button for use in a CustomMessageBox.
Can be implicitly converted to string and MessageBoxResult.
◆ CustomMessageBoxButton() [1/2]
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.CustomMessageBoxButton |
( |
string |
name, |
|
|
object |
content |
|
) |
| |
◆ CustomMessageBoxButton() [2/2]
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.CustomMessageBoxButton |
( |
string |
name | ) |
|
◆ Equals() [1/7]
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
char |
name | ) |
|
Checks if this instance's Name is a match for the specified name name.
- Parameters
-
name | A string to compare with this instance's Name. |
- Returns
true
when Name is 1 char long and that char is equal to name ; otherwise, false
.
◆ Equals() [2/7]
Checks if this instance's Name is a match for the specified other instance's name using StringComparison.Ordinal.
- Parameters
-
- Returns
true
when both names match & other isn't null
; otherwise, false
.
◆ Equals() [3/7]
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
CustomMessageBoxButton? |
other, |
|
|
StringComparison |
stringComparison |
|
) |
| |
Checks if this instance's Name is a match for the specified other instance's name using the specified stringComparison type.
- Parameters
-
other | Another CustomMessageBoxButton instance. |
stringComparison | The StringComparison type to use for comparing names. |
- Returns
true
when both names match & other isn't null
; otherwise, false
.
◆ Equals() [4/7]
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
MessageBoxResult |
result | ) |
|
Checks if this instance's Name is a match for the name of the specified result .
- Parameters
-
result | A MessageBoxResult to compare with this instance's Name. |
- Returns
true
when Name matches the name of the result enum value; otherwise, false
.
◆ Equals() [5/7]
override bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
object? |
obj | ) |
|
Determines whether the specified object is equatable with, and equal to, the current object.
◆ Equals() [6/7]
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
string? |
name | ) |
|
Checks if this instance's Name matches the specified name name using StringComparison.Ordinal.
- Parameters
-
name | A string to compare with this instance's Name. |
- Returns
true
when both names match & name isn't null
; otherwise, false
.
◆ Equals() [7/7]
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Equals |
( |
string? |
name, |
|
|
StringComparison |
stringComparison |
|
) |
| |
Checks if this instance's Name matches the specified name name using the specified stringComparison type.
- Parameters
-
name | A string to compare with this instance's Name. |
stringComparison | The StringComparison type to use. |
- Returns
true
when both names match & name isn't null
; otherwise, false
.
◆ GetHashCode()
override int VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.GetHashCode |
( |
| ) |
|
- Returns
- A hash code for the current object's Name.
◆ operator CustomMessageBoxButton() [1/3]
static implicit VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator CustomMessageBoxButton |
( |
char? |
name | ) |
|
|
static |
Creates a new CustomMessageBoxButton instance from the specified name .
- Parameters
-
name | The name of the button instance to create. |
◆ operator CustomMessageBoxButton() [2/3]
static VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator CustomMessageBoxButton |
( |
MessageBoxResult |
messageBoxResult | ) |
|
|
explicitstatic |
Creates a new CustomMessageBoxButton instance from the specified messageBoxResult .
- Parameters
-
messageBoxResult | A MessageBoxButton enum value to convert. |
- Exceptions
-
InvalidEnumArgumentException | The specified messageBoxResult is invalid for the MessageBoxResult enum type. |
◆ operator CustomMessageBoxButton() [3/3]
static implicit VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator CustomMessageBoxButton |
( |
string? |
name | ) |
|
|
static |
Creates a new CustomMessageBoxButton instance from the specified name .
- Parameters
-
name | The name of the button instance to create. |
◆ operator MessageBoxResult()
static implicit VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator MessageBoxResult |
( |
CustomMessageBoxButton? |
cmbButton | ) |
|
|
static |
Converts the specified cmbButton to a MessageBoxResult by converting the value of Name.
- Parameters
-
◆ operator string?()
static VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator string? |
( |
CustomMessageBoxButton? |
cmbButton | ) |
|
|
explicitstatic |
Converts the specified cmbButton to a string by returning the value of Name.
- Parameters
-
◆ operator!=() [1/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator!= |
( |
CustomMessageBoxButton? |
inst, |
|
|
char |
name |
|
) |
| |
|
static |
Checks if the Name of the specified inst is not a match for the specified name .
- Returns
true
when the names don't match; otherwise, false
.
◆ operator!=() [2/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator!= |
( |
CustomMessageBoxButton? |
inst, |
|
|
MessageBoxResult |
messageBoxResult |
|
) |
| |
|
static |
Checks if the Name of the specified inst is not a match for the specified messageBoxResult .
- Returns
true
when the name doesn't match; otherwise, false
.
◆ operator!=() [3/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator!= |
( |
CustomMessageBoxButton? |
inst, |
|
|
string? |
name |
|
) |
| |
|
static |
Checks if the Name of the specified inst is not a match for the specified name .
- Returns
true
when the names don't match; otherwise, false
.
◆ operator!=() [4/4]
Checks if the Name of the specified left instance doesn't match the name of the right instance.
- Returns
true
when the names don't match; otherwise, false
.
◆ operator==() [1/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator== |
( |
CustomMessageBoxButton? |
inst, |
|
|
char |
name |
|
) |
| |
|
static |
Checks if the Name of the specified inst is a match for the specified name .
- Returns
true
when the names match; otherwise, false
.
◆ operator==() [2/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator== |
( |
CustomMessageBoxButton? |
inst, |
|
|
MessageBoxResult |
messageBoxResult |
|
) |
| |
|
static |
Checks if the Name of the specified inst is a match for the specified messageBoxResult .
- Returns
true
when the name matches; otherwise, false
.
◆ operator==() [3/4]
static bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.operator== |
( |
CustomMessageBoxButton? |
inst, |
|
|
string? |
name |
|
) |
| |
|
static |
Checks if the Name of the specified inst is a match for the specified name .
- Returns
true
when the names match; otherwise, false
.
◆ operator==() [4/4]
Checks if the Name of the specified left instance matches the name of the right instance.
- Returns
true
when the names match; otherwise, false
.
◆ ToMessageBoxResult()
MessageBoxResult VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.ToMessageBoxResult |
( |
bool |
ignoreCase = true | ) |
|
◆ ToString()
override string VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.ToString |
( |
| ) |
|
◆ TryGetMessageBoxResult()
bool VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.TryGetMessageBoxResult |
( |
bool |
ignoreCase, |
|
|
out MessageBoxResult |
result |
|
) |
| |
Attempts to convert this CustomMessageBoxButton instance to a MessageBoxResult value.
- Parameters
-
ignoreCase | When true , letter casing is ignored. |
result | The MessageBoxResult value with a matching name. |
- Returns
true
when successful; otherwise, false
.
◆ Content
object VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Content |
|
get |
◆ Name
string VolumeControl.WPF.CustomMessageBox.CustomMessageBoxButton.Name |
|
get |
The documentation for this class was generated from the following file: