[This is preliminary documentation and is subject to change.]
Display default (GetDefault()()()()) message box initialized with given instance of MessageBox modeless
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public static MessageBox DisplayTemplate( MessageBox InitializeFrom, Object Owner, string Prompt, string Title ) |
| Visual Basic |
|---|
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _ Public Shared Function DisplayTemplate ( _ InitializeFrom As MessageBox, _ Owner As Object, _ Prompt As String, _ Title As String _ ) As MessageBox |
| Visual C++ |
|---|
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)] public: static MessageBox^ DisplayTemplate( MessageBox^ InitializeFrom, Object^ Owner, String^ Prompt, String^ Title ) |
| F# |
|---|
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>] static member DisplayTemplate : InitializeFrom:MessageBox * Owner:Object * Prompt:string * Title:string -> MessageBox |
| JScript |
|---|
public static function DisplayTemplate( InitializeFrom : MessageBox, Owner : Object, Prompt : String, Title : String ) : MessageBox |
Parameters
- InitializeFrom
- Type: Tools.WindowsT.IndependentT..::..MessageBox
Instance to initialize default message box with
- Owner
- Type: System..::..Object
Owner window (can be null). Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
- Prompt
- Type: System..::..String
If not null sets dfferent prompt then InitializeFrom
- Title
- Type: System..::..String
Is not null sets diffetent title then InitializeFrom
Return Value
[Missing <returns> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.DisplayTemplate(Tools.WindowsT.IndependentT.MessageBox,System.Object,System.String,System.String)"]
Remarks
For same reason as InitializeFrom(MessageBox), do not use InitializeFrom to clonning live message boxes
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | InitializeFrom is null |
| System.Reflection..::..TargetInvocationException | Ther was an error obtainin default implementation instance via GetDefault()()()(). See InnerException for details. |
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.