Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
182 lines (174 sloc) 11.4 KB
<Type Name="ActiveDesignerEventArgs" FullName="System.ComponentModel.Design.ActiveDesignerEventArgs">
<TypeSignature Language="C#" Value="public class ActiveDesignerEventArgs : EventArgs" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ActiveDesignerEventArgs extends System.EventArgs" />
<TypeSignature Language="DocId" Value="T:System.ComponentModel.Design.ActiveDesignerEventArgs" />
<TypeSignature Language="VB.NET" Value="Public Class ActiveDesignerEventArgs&#xA;Inherits EventArgs" />
<TypeSignature Language="C++ CLI" Value="public ref class ActiveDesignerEventArgs : EventArgs" />
<TypeSignature Language="F#" Value="type ActiveDesignerEventArgs = class&#xA; inherit EventArgs" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.TypeConverter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.EventArgs</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides data for the <see cref="P:System.ComponentModel.Design.IDesignerEventService.ActiveDesigner" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.ComponentModel.Design.IDesignerEventService.ActiveDesigner%2A> event occurs when the currently active document changes. The active document changes when a new document is created, an existing document is opened, or a document is closed.
When you create an <xref:System.ComponentModel.Design.ActiveDesignerEventArgs> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following example method returns an <xref:System.ComponentModel.Design.ActiveDesignerEventArgs> that contains a specified reference to the <xref:System.ComponentModel.Design.IDesignerHost> for the designer losing focus and a specified reference to the <xref:System.ComponentModel.Design.IDesignerHost> for the designer gaining focus.
[!code-cpp[ActiveDesignerEventArgs#1](~/samples/snippets/cpp/VS_Snippets_Winforms/ActiveDesignerEventArgs/CPP/class1.cpp#1)]
[!code-csharp[ActiveDesignerEventArgs#1](~/samples/snippets/csharp/VS_Snippets_Winforms/ActiveDesignerEventArgs/CS/class1.cs#1)]
[!code-vb[ActiveDesignerEventArgs#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/ActiveDesignerEventArgs/VB/class1.vb#1)]
]]></format>
</remarks>
<altmember cref="T:System.ComponentModel.Design.ActiveDesignerEventHandler" />
<altmember cref="P:System.ComponentModel.Design.IDesignerEventService.ActiveDesigner" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ActiveDesignerEventArgs (System.ComponentModel.Design.IDesignerHost oldDesigner, System.ComponentModel.Design.IDesignerHost newDesigner);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.Design.IDesignerHost oldDesigner, class System.ComponentModel.Design.IDesignerHost newDesigner) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ComponentModel.Design.ActiveDesignerEventArgs.#ctor(System.ComponentModel.Design.IDesignerHost,System.ComponentModel.Design.IDesignerHost)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (oldDesigner As IDesignerHost, newDesigner As IDesignerHost)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; ActiveDesignerEventArgs(System::ComponentModel::Design::IDesignerHost ^ oldDesigner, System::ComponentModel::Design::IDesignerHost ^ newDesigner);" />
<MemberSignature Language="F#" Value="new System.ComponentModel.Design.ActiveDesignerEventArgs : System.ComponentModel.Design.IDesignerHost * System.ComponentModel.Design.IDesignerHost -&gt; System.ComponentModel.Design.ActiveDesignerEventArgs" Usage="new System.ComponentModel.Design.ActiveDesignerEventArgs (oldDesigner, newDesigner)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.TypeConverter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="oldDesigner" Type="System.ComponentModel.Design.IDesignerHost" />
<Parameter Name="newDesigner" Type="System.ComponentModel.Design.IDesignerHost" />
</Parameters>
<Docs>
<param name="oldDesigner">The document that is losing activation.</param>
<param name="newDesigner">The document that is gaining activation.</param>
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.ActiveDesignerEventArgs" /> class.</summary>
<remarks>To be added.</remarks>
<altmember cref="T:System.ComponentModel.Design.IDesignerHost" />
<altmember cref="T:System.ComponentModel.Design.ActiveDesignerEventHandler" />
<altmember cref="P:System.ComponentModel.Design.IDesignerEventService.ActiveDesigner" />
</Docs>
</Member>
<Member MemberName="NewDesigner">
<MemberSignature Language="C#" Value="public System.ComponentModel.Design.IDesignerHost NewDesigner { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.Design.IDesignerHost NewDesigner" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.Design.ActiveDesignerEventArgs.NewDesigner" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NewDesigner As IDesignerHost" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::ComponentModel::Design::IDesignerHost ^ NewDesigner { System::ComponentModel::Design::IDesignerHost ^ get(); };" />
<MemberSignature Language="F#" Value="member this.NewDesigner : System.ComponentModel.Design.IDesignerHost" Usage="System.ComponentModel.Design.ActiveDesignerEventArgs.NewDesigner" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.TypeConverter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ComponentModel.Design.IDesignerHost</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the document that is gaining activation.</summary>
<value>An <see cref="T:System.ComponentModel.Design.IDesignerHost" /> that represents the document gaining activation.</value>
<remarks>To be added.</remarks>
<altmember cref="P:System.ComponentModel.Design.ActiveDesignerEventArgs.OldDesigner" />
<altmember cref="T:System.ComponentModel.Design.IDesignerHost" />
</Docs>
</Member>
<Member MemberName="OldDesigner">
<MemberSignature Language="C#" Value="public System.ComponentModel.Design.IDesignerHost OldDesigner { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.Design.IDesignerHost OldDesigner" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.Design.ActiveDesignerEventArgs.OldDesigner" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property OldDesigner As IDesignerHost" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::ComponentModel::Design::IDesignerHost ^ OldDesigner { System::ComponentModel::Design::IDesignerHost ^ get(); };" />
<MemberSignature Language="F#" Value="member this.OldDesigner : System.ComponentModel.Design.IDesignerHost" Usage="System.ComponentModel.Design.ActiveDesignerEventArgs.OldDesigner" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.TypeConverter</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ComponentModel.Design.IDesignerHost</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the document that is losing activation.</summary>
<value>An <see cref="T:System.ComponentModel.Design.IDesignerHost" /> that represents the document losing activation.</value>
<remarks>To be added.</remarks>
<altmember cref="P:System.ComponentModel.Design.ActiveDesignerEventArgs.NewDesigner" />
<altmember cref="T:System.ComponentModel.Design.IDesignerHost" />
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.