-
Notifications
You must be signed in to change notification settings - Fork 8
/
DocContextChangeEvent.xml
181 lines (181 loc) · 11.2 KB
/
DocContextChangeEvent.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
<Type Name="DocContextChangeEvent" FullName="Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent">
<TypeSignature Language="C#" Value="public interface DocContextChangeEvent : Microsoft.Office.Interop.InfoPath.SemiTrust.DocEvent" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract DocContextChangeEvent implements class Microsoft.Office.Interop.InfoPath.SemiTrust.DocEvent" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent" />
<TypeSignature Language="VB.NET" Value="Public Interface DocContextChangeEvent
Implements DocEvent" />
<TypeSignature Language="C++ CLI" Value="public interface class DocContextChangeEvent : Microsoft::Office::Interop::InfoPath::SemiTrust::DocEvent" />
<TypeSignature Language="F#" Value="type DocContextChangeEvent = interface
 interface DocEvent" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.SemiTrust.DocEvent</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096cd6d2-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.DocContextChangeEventObject" />.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Context">
<MemberSignature Language="C#" Value="public Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode Context { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode Context" />
<MemberSignature Language="DocId" Value="P:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.Context" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Context As IXMLDOMNode" />
<MemberSignature Language="C++ CLI" Value="public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNode ^ Context { Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNode ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Context : Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode" Usage="Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.Context" />
<MemberType>Property</MemberType>
<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>Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a reference to the XML Document Object Model (DOM) node that is the new context node provided by <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEventObject" /> object.</summary>
<value>To be added.</value>
<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, a node named <paramref name="lastChanged" /> is updated in response to context changes:</para>
<code>[InfoPathEventHandler(EventType=InfoPathEventType.OnContextChange)]
public void OnContextChange(DocContextChangeEvent e)
{
if ( e.Type == "ContextNode" &amp;&amp; !e.IsUndoRedo )
{
IXMLDOMNode contextNode = e.<span class="label">Context</span>;
IXMLDOMNode lastChangedNode = thisXDocument.DOM.selectSingleNode("my:lastChanged");
lastChangedNode.text = contextNode.nodeName;
}
}</code>
</example>
</Docs>
</Member>
<Member MemberName="IsUndoRedo">
<MemberSignature Language="C#" Value="public bool IsUndoRedo { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsUndoRedo" />
<MemberSignature Language="DocId" Value="P:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.IsUndoRedo" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsUndoRedo As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool IsUndoRedo { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsUndoRedo : bool" Usage="Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.IsUndoRedo" />
<MemberType>Property</MemberType>
<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.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the context change event occurred in response to undoing an operation or redoing an operation.</summary>
<value>To be added.</value>
<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, a node named <paramref name="lastChanged" /> is updated in response to context changes not related to undo and redo:</para>
<code>[InfoPathEventHandler(EventType=InfoPathEventType.OnContextChange)]
public void OnContextChange(DocContextChangeEvent e)
{
if ( e.Type == "ContextNode" &amp;&amp; !e.<span class="label">IsUndoRedo</span> )
{
IXMLDOMNode contextNode = e.Context;
IXMLDOMNode lastChangedNode = thisXDocument.DOM.selectSingleNode("/my:root/my:lastChanged");
lastChangedNode.text = contextNode.nodeName;
}
}</code>
</example>
</Docs>
</Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public string Type { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Type" />
<MemberSignature Language="DocId" Value="P:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.Type" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Type As String" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Type { System::String ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Type : string" Usage="Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.Type" />
<MemberType>Property</MemberType>
<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.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the type of context change event that occurred when the <see cref="E:Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_Event.OnContextChange" /> event was triggered.</summary>
<value>To be added.</value>
<remarks>
<para>The <b>Type</b> property returns only the value "ContextNode" for context changes in Microsoft InfoPath. Nevertheless, if code in an event handler performs actions that depend on current functionality, that code should still be designed to check the value of the Type property, because future versions of InfoPath may use different values for different context changes.</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>
</Docs>
</Member>
<Member MemberName="XDocument">
<MemberSignature Language="C#" Value="public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument XDocument { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument XDocument" />
<MemberSignature Language="DocId" Value="P:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.XDocument" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property XDocument As XDocument" />
<MemberSignature Language="C++ CLI" Value="public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ XDocument { Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ get(); };" />
<MemberSignature Language="F#" Value="member this.XDocument : Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument" Usage="Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEvent.XDocument" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.Office.Interop.InfoPath.SemiTrust.DocEvent.XDocument</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.DispId(100)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a reference to the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument" /> object that is associated with the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.DocContextChangeEventObject" /> object in an <see cref="E:Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_Event.OnContextChange" /> event.</summary>
<value>To be added.</value>
<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>
</Docs>
</Member>
</Members>
</Type>