-
Notifications
You must be signed in to change notification settings - Fork 8
/
UI2.xml
365 lines (363 loc) · 26.7 KB
/
UI2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<Type Name="UI2" FullName="Microsoft.Office.Interop.InfoPath.SemiTrust.UI2">
<TypeSignature Language="C#" Value="public interface UI2 : Microsoft.Office.Interop.InfoPath.SemiTrust.UI" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract UI2 implements class Microsoft.Office.Interop.InfoPath.SemiTrust.UI" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2" />
<TypeSignature Language="VB.NET" Value="Public Interface UI2
Implements UI" />
<TypeSignature Language="C++ CLI" Value="public interface class UI2 : Microsoft::Office::Interop::InfoPath::SemiTrust::UI" />
<TypeSignature Language="F#" Value="type UI2 = interface
 interface UI" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.SemiTrust.UI</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096cd549-0786-11d1-95fa-0080c78ee3bb")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, see<see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" />.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Alert">
<MemberSignature Language="C#" Value="public void Alert (string bstrAlertString);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Alert(string bstrAlertString) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.Alert(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub Alert (bstrAlertString As String)" />
<MemberSignature Language="C++ CLI" Value="public:
 void Alert(System::String ^ bstrAlertString);" />
<MemberSignature Language="F#" Value="abstract member Alert : string -> unit" Usage="uI2.Alert bstrAlertString" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI.Alert(System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(1)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrAlertString" Type="System.String" />
</Parameters>
<Docs>
<param name="bstrAlertString">The text to be displayed.</param>
<summary>Displays a message box with a custom text message in a Microsoft InfoPath form.</summary>
<remarks>
<para>The <b>Alert</b> method displays a simple message box that uses an information icon and an OK button. Only the text in the message box can be customized.</para>
<para>
<b>Note</b>: In Visual C# code, carriage returns can be inserted into the text of the custom message by using the standard \n characters.</para>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>Alert</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to display a message box:</para>
<code>thisXDocument.UI.<span class="label">Alert</span>("Custom message text goes here.");</code>
</example>
</Docs>
</Member>
<Member MemberName="Confirm">
<MemberSignature Language="C#" Value="public Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice Confirm (string bstrPrompt, Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons lButtons);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice Confirm(string bstrPrompt, valuetype Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons lButtons) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.Confirm(System.String,Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons)" />
<MemberSignature Language="VB.NET" Value="Public Function Confirm (bstrPrompt As String, lButtons As XdConfirmButtons) As XdConfirmChoice" />
<MemberSignature Language="C++ CLI" Value="public:
 Microsoft::Office::Interop::InfoPath::SemiTrust::XdConfirmChoice Confirm(System::String ^ bstrPrompt, Microsoft::Office::Interop::InfoPath::SemiTrust::XdConfirmButtons lButtons);" />
<MemberSignature Language="F#" Value="abstract member Confirm : string * Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons -> Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice" Usage="uI2.Confirm (bstrPrompt, lButtons)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(7)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrPrompt" Type="System.String" />
<Parameter Name="lButtons" Type="Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons" />
</Parameters>
<Docs>
<param name="bstrPrompt">The text message to be displayed.</param>
<param name="lButtons">Specifies the number and type of buttons to display. You may specify any of the values of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmButtons" /> enumeration.</param>
<summary>Displays a message box with buttons for input from a user.</summary>
<returns>An <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice" /> enumeration.</returns>
<remarks>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>Confirm</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to display a dialog box with <b>Yes</b> and <b>No</b> buttons:</para>
<code>thisXDocument.UI.<span class="label">Confirm</span>("Do you wish to continue?", XdConfirmButtons.xdYesNo);</code>
</example>
</Docs>
</Member>
<Member MemberName="SetSaveAsDialogFileName">
<MemberSignature Language="C#" Value="public void SetSaveAsDialogFileName (string bstrFileName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetSaveAsDialogFileName(string bstrFileName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.SetSaveAsDialogFileName(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub SetSaveAsDialogFileName (bstrFileName As String)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetSaveAsDialogFileName(System::String ^ bstrFileName);" />
<MemberSignature Language="F#" Value="abstract member SetSaveAsDialogFileName : string -> unit" Usage="uI2.SetSaveAsDialogFileName bstrFileName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(5)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrFileName" Type="System.String" />
</Parameters>
<Docs>
<param name="bstrFileName">The file name of the form supplied to the Save As dialog box.</param>
<summary>Sets the default file name for a form in the Save As dialog box.</summary>
<remarks>
<para>If the <paramref name="bstrFileName" /> argument is a null reference (Nothing in Visual Basic), "Form" is used as the file name. The <b>SetSaveAsDialogFileName</b> method may be used in conjunction with the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.SetSaveAsDialogLocation(System.String)" /> method.</para>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>SetSaveAsDialogFileName</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to set the default file name for the "Save As" dialog box:</para>
<code>thisXDocument.UI.<span class="label">SetSaveAsDialogFileName</span>("Status Report.xml");</code>
</example>
</Docs>
</Member>
<Member MemberName="SetSaveAsDialogLocation">
<MemberSignature Language="C#" Value="public void SetSaveAsDialogLocation (string bstrLocation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetSaveAsDialogLocation(string bstrLocation) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.SetSaveAsDialogLocation(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub SetSaveAsDialogLocation (bstrLocation As String)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetSaveAsDialogLocation(System::String ^ bstrLocation);" />
<MemberSignature Language="F#" Value="abstract member SetSaveAsDialogLocation : string -> unit" Usage="uI2.SetSaveAsDialogLocation bstrLocation" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(6)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrLocation" Type="System.String" />
</Parameters>
<Docs>
<param name="bstrLocation">The location, expressed as a URL, at which the Save As dialog box starts browsing.</param>
<summary>Sets the initial location at which the Save As dialog starts to browse when it is opened.</summary>
<remarks>
<para>The location specified must be an absolute path and it should not include a file name. InfoPath handles invalid paths, however, and no error message is generated if an invalid path is specified for the <paramref name="bstrLocation" /> argument. The <b>SetSaveAsDialogLocation</b> method may be used in conjunction with the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.SetSaveAsDialogFileName(System.String)" /> method.</para>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>SetSaveAsDialogLocation</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to set the initial location for the "Save As" dialog:</para>
<code>thisXDocument.UI.<span class="label">SetSaveAsDialogLocation</span>(@"\\MyShare\\Forms");</code>
</example>
</Docs>
</Member>
<Member MemberName="ShowMailItem">
<MemberSignature Language="C#" Value="public void ShowMailItem (string bstrTo, string bstrCC, string bstrBCC, string bstrSubject, string bstrBody);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ShowMailItem(string bstrTo, string bstrCC, string bstrBCC, string bstrSubject, string bstrBody) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.ShowMailItem(System.String,System.String,System.String,System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub ShowMailItem (bstrTo As String, bstrCC As String, bstrBCC As String, bstrSubject As String, bstrBody As String)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ShowMailItem(System::String ^ bstrTo, System::String ^ bstrCC, System::String ^ bstrBCC, System::String ^ bstrSubject, System::String ^ bstrBody);" />
<MemberSignature Language="F#" Value="abstract member ShowMailItem : string * string * string * string * string -> unit" Usage="uI2.ShowMailItem (bstrTo, bstrCC, bstrBCC, bstrSubject, bstrBody)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI.ShowMailItem(System.String,System.String,System.String,System.String,System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(4)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrTo" Type="System.String" />
<Parameter Name="bstrCC" Type="System.String" />
<Parameter Name="bstrBCC" Type="System.String" />
<Parameter Name="bstrSubject" Type="System.String" />
<Parameter Name="bstrBody" Type="System.String" />
</Parameters>
<Docs>
<param name="bstrTo">The e-mail address to send the e-mail message to.</param>
<param name="bstrCC">The e-mail address to copy the e-mail message to.</param>
<param name="bstrBCC">The e-mail address to blind copy the e-mail message to.</param>
<param name="bstrSubject">The subject of the e-mail message.</param>
<param name="bstrBody">The body text of the e-mail message.</param>
<summary>Creates an e-mail message in the default e-mail editor and attaches the currently open Microsoft InfoPath form to the message.</summary>
<remarks>
<para>After the e-mail message is created, the default e-mail editor will display the e-mail message; users can then inspect and edit the e-mail message before sending it. The <b>ShowMailItem</b> method will return an error if no e-mail editing program is available.</para>
<para>
<b>Note</b>: The <b>ShowMailItem</b> method does not send the e-mail messages it creates; users must manually send the e-mail messages.</para>
<para>You can also use the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObject" /> object or <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.EmailAdapterObject" /> object to programmatically create e-mail messages.</para>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>ShowMailItem</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to create a custom e-mail message:</para>
<code>thisXDocument.UI.ShowMailItem("someone@example.com", "", "", "Updated Form", "Here is the updated form that you requested.");</code>
</example>
</Docs>
</Member>
<Member MemberName="ShowModalDialog">
<MemberSignature Language="C#" Value="public object ShowModalDialog (string bstrName, object varArguments, object varHeight, object varWidth, object varTop, object varLeft);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance object ShowModalDialog(string bstrName, object varArguments, object varHeight, object varWidth, object varTop, object varLeft) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.ShowModalDialog(System.String,System.Object,System.Object,System.Object,System.Object,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function ShowModalDialog (bstrName As String, varArguments As Object, varHeight As Object, varWidth As Object, varTop As Object, varLeft As Object) As Object" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ ShowModalDialog(System::String ^ bstrName, System::Object ^ varArguments, System::Object ^ varHeight, System::Object ^ varWidth, System::Object ^ varTop, System::Object ^ varLeft);" />
<MemberSignature Language="F#" Value="abstract member ShowModalDialog : string * obj * obj * obj * obj * obj -> obj" Usage="uI2.ShowModalDialog (bstrName, varArguments, varHeight, varWidth, varTop, varLeft)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI.ShowModalDialog(System.String,System.Object,System.Object,System.Object,System.Object,System.Object)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(2)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bstrName" Type="System.String" />
<Parameter Name="varArguments" Type="System.Object" />
<Parameter Name="varHeight" Type="System.Object" />
<Parameter Name="varWidth" Type="System.Object" />
<Parameter Name="varTop" Type="System.Object" />
<Parameter Name="varLeft" Type="System.Object" />
</Parameters>
<Docs>
<param name="bstrName">The name of the .html file used for the modal dialog box.</param>
<param name="varArguments">Specifies the arguments to use when displaying the modal dialog box. Can be any type of value, including an array of values.</param>
<param name="varHeight">Sets the height of the modal dialog box.</param>
<param name="varWidth">Sets the width of the modal dialog box.</param>
<param name="varTop">Sets the top position of the modal dialog box relative to the upper left corner of the desktop.</param>
<param name="varLeft">Sets the left position of the modal dialog box relative to the upper left corner of the desktop.</param>
<summary>Displays a custom modal dialog box in a Microsoft InfoPath form.</summary>
<returns>An <b>object</b> that specifies how to display the modal dialog box.</returns>
<remarks>
<para>The <b>ShowModalDialog</b> method allows you to display custom dialog boxes to users as they fill out a fully trusted form. Custom dialog boxes are implemented as .html files created in any type of HTML editor, such as Microsoft FrontPage. You can use scripting code in a custom dialog box that interacts with the InfoPath object model if you pass objects to the custom dialog box using the <paramref name="varArguments" /> parameter.</para>
<para>To use a custom dialog box in an InfoPath form, you must first add the .html file of the custom dialog box to the form's set of resource files by using the Resource Files dialog box. The Resource Files dialog box is available from the Tools menu in design mode. After you have added the custom dialog box file to the form, you can use the <b>ShowModalDialog</b> method to display it.</para>
<para>Although the <b>ShowModalDialog</b> method can only be used in fully trusted forms, you can create a custom dialog box in standard forms using the <b>showModalDialog</b> method of the Dynamic HTML (DHTML) object model if you have an HTML task pane specified in your form, or by using a Windows form.</para>
<para>
<b>Important</b>: This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>ShowModalDialog</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to display a custom dialog box. Note that the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument" /> object is passed to the custom dialog box using the <paramref name="varArguments" /> parameter.</para>
<code>thisXDocument.UI.<span class="label">ShowModalDialog</span>("show.htm",(object)thisXDocument,100,100,10,10);</code>
<para>The following example is the HTML code used to implement a simple custom dialog box. Note the use of the <b>dialogArguments</b> property of the DHTML window object to get the values passed to the custom dialog box, which in this case is the <b>XDocument</b> object of the InfoPath object model, from the <b>ShowModalDialog</b> method. When a user clicks the Show Alert button in the custom dialog box, the source XML of the form's underlying XML document appears in a message box.</para>
<code>&lt;html&gt;
&lt;head&gt;
&lt;script language="jscript"&gt;
var gobjXDocument = null;
function Initialize()
{
// Save a reference to the XDocument object.
if (typeof window.dialogArguments == "object")
gobjXDocument = window.dialogArguments;
}
&lt;/script&gt;
&lt;title&gt;A Simple Custom Dialog Box&lt;/title&gt;
&lt;/head&gt;
&lt;body style="BACKGROUND-COLOR: window" onLoad="Initialize()"&gt;
&lt;strong&gt;Click one of the following buttons:&lt;/strong&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;div id="divButtons" tyle="align:center"&gt;
&lt;input id="btnShowAlert" style="WIDTH: 106px; HEIGHT: 24px"
onclick='gobjXDocument.UI.Alert(gobjXDocument.DOM.xml);'
type="button" size="21" value="Show Alert"&gt;&lt;/input&gt;
&lt;input id="btnCancel" style="WIDTH: 106px; HEIGHT: 24px"
onclick="window.close();" type="button" size="21"
value="Cancel"&gt;&lt;/input&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</code>
<para>For information on how to use the <b>ShowModalDialog</b> box method, see How to: Display Alerts and Dialog Boxes (InfoPath 2003 Object Model).</para>
</example>
</Docs>
</Member>
<Member MemberName="ShowSignatureDialog">
<MemberSignature Language="C#" Value="public void ShowSignatureDialog ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ShowSignatureDialog() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.ShowSignatureDialog" />
<MemberSignature Language="VB.NET" Value="Public Sub ShowSignatureDialog ()" />
<MemberSignature Language="C++ CLI" Value="public:
 void ShowSignatureDialog();" />
<MemberSignature Language="F#" Value="abstract member ShowSignatureDialog : unit -> unit" Usage="uI2.ShowSignatureDialog " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI.ShowSignatureDialog</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(3)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Displays the Microsoft InfoPathDigital Signatures dialog box.</summary>
<remarks>
<para>The <b>ShowSignatureDialog</b> method can be used only in forms that have been enabled for digital signing. The method will return an error if used in a form that is not enabled for digital signing.</para>
<para>
<b>Important</b>: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>ShowSignatureDialog</b> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object is used to display the Microsoft InfoPath Digital Signatures dialog box:</para>
<code>thisXDocument.UI.<span class="label">ShowSignatureDialog</span>();</code>
</example>
</Docs>
</Member>
</Members>
</Type>