Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
129 lines (123 sloc) 7.27 KB
<Type Name="LinkBehavior" FullName="System.Windows.Forms.LinkBehavior">
<TypeSignature Language="C#" Value="public enum LinkBehavior" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed LinkBehavior extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.LinkBehavior" />
<TypeSignature Language="VB.NET" Value="Public Enum LinkBehavior" />
<TypeSignature Language="C++ CLI" Value="public enum class LinkBehavior" />
<TypeSignature Language="F#" Value="type LinkBehavior = " />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies the behaviors of a link in a <see cref="T:System.Windows.Forms.LinkLabel" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the members of this enumeration to set the value of the <xref:System.Windows.Forms.LinkLabel.LinkBehavior%2A> property of the <xref:System.Windows.Forms.LinkLabel>.
## Examples
The following example demonstrates setting the <xref:System.Windows.Forms.LinkLabel.LinkBehavior%2A?displayProperty=nameWithType> property using the <xref:System.Windows.Forms.LinkBehavior> enumeration. It also demonstrates setting the <xref:System.Windows.Forms.LinkLabel.LinkColor%2A?displayProperty=nameWithType>, <xref:System.Windows.Forms.LinkLabel.Text%2A> and <xref:System.Windows.Forms.LinkLabel.LinkVisited%2A> properties. To run this sample place it in a blank form and call the InitializeLinkLabel method from the form's constructor or Load method.
[!code-cpp[System.Windows.Forms.LinkLabelExample#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.LinkLabelExample/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.LinkLabelExample#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.LinkLabelExample/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.LinkLabelExample#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.LinkLabelExample/VB/form1.vb#1)]
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.LinkLabel" />
<altmember cref="P:System.Windows.Forms.LinkLabel.LinkBehavior" />
</Docs>
<Members>
<Member MemberName="AlwaysUnderline">
<MemberSignature Language="C#" Value="AlwaysUnderline" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.LinkBehavior AlwaysUnderline = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.LinkBehavior.AlwaysUnderline" />
<MemberSignature Language="VB.NET" Value="AlwaysUnderline" />
<MemberSignature Language="C++ CLI" Value="AlwaysUnderline" />
<MemberSignature Language="F#" Value="AlwaysUnderline = 1" Usage="System.Windows.Forms.LinkBehavior.AlwaysUnderline" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.LinkBehavior</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>The link always displays with underlined text.</summary>
</Docs>
</Member>
<Member MemberName="HoverUnderline">
<MemberSignature Language="C#" Value="HoverUnderline" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.LinkBehavior HoverUnderline = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.LinkBehavior.HoverUnderline" />
<MemberSignature Language="VB.NET" Value="HoverUnderline" />
<MemberSignature Language="C++ CLI" Value="HoverUnderline" />
<MemberSignature Language="F#" Value="HoverUnderline = 2" Usage="System.Windows.Forms.LinkBehavior.HoverUnderline" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.LinkBehavior</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>The link displays underlined text only when the mouse is hovered over the link text.</summary>
</Docs>
</Member>
<Member MemberName="NeverUnderline">
<MemberSignature Language="C#" Value="NeverUnderline" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.LinkBehavior NeverUnderline = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.LinkBehavior.NeverUnderline" />
<MemberSignature Language="VB.NET" Value="NeverUnderline" />
<MemberSignature Language="C++ CLI" Value="NeverUnderline" />
<MemberSignature Language="F#" Value="NeverUnderline = 3" Usage="System.Windows.Forms.LinkBehavior.NeverUnderline" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.LinkBehavior</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>The link text is never underlined. The link can still be distinguished from other text by use of the <see cref="P:System.Windows.Forms.LinkLabel.LinkColor" /> property of the <see cref="T:System.Windows.Forms.LinkLabel" /> control.</summary>
</Docs>
</Member>
<Member MemberName="SystemDefault">
<MemberSignature Language="C#" Value="SystemDefault" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.LinkBehavior SystemDefault = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.LinkBehavior.SystemDefault" />
<MemberSignature Language="VB.NET" Value="SystemDefault" />
<MemberSignature Language="C++ CLI" Value="SystemDefault" />
<MemberSignature Language="F#" Value="SystemDefault = 0" Usage="System.Windows.Forms.LinkBehavior.SystemDefault" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.LinkBehavior</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>The behavior of this setting depends on the options set using the Internet Options dialog box in Control Panel or Internet Explorer.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.